Comments (12)
Not sure exactly why yet, but this line of code is not being run code
from moc-openstack-tools.
First suspicion is that you're getting an exception on the line before
from moc-openstack-tools.
guess you can drop a python debugger and see whether it is called?
from moc-openstack-tools.
Some thoughts:
- If you got an error from msg.send() in line 256, that can also cause copy_index to be empty and the whole if statement gets skipped. Are the rows being appended to Processed Rows?
- It won't delete the last non-frozen line, so if there's not a blank line at the bottom of the spreadsheet, deletion will fail (although this should result in an error from Google Sheets).
from moc-openstack-tools.
I think this is related to #92. The Google API doesn't seem to be granting write access. I'm not yet sure why that would be, since the mocwebsite .json auth file hasn't changed.
from moc-openstack-tools.
from moc-openstack-tools.
@pjd-nu I'm not sure. I wasn't aware of any changes. I can ping you via email.
from moc-openstack-tools.
This is a bit of a non-sequitur, but did anyone with access to the helpdesk-vm make local changes, outside of version control? I noticed that the local is ahead of the remote today, but it was synced when I left it last.
Edit: Fixed now.
from moc-openstack-tools.
I just checked the Google Cloud Platform API settings for the moc account. The API key there matches the one on the helpdesk-vm; it's still valid.
from moc-openstack-tools.
@greyspectrum the problem with this and #92 is that the service account is only granted read access to the spreadsheet. It needs to be granted write access.
from moc-openstack-tools.
@kamfonik Yup, you're right. The service account only had read access on both the account requests spreadsheet and the quota requests spreadsheet. This would also explain why addusers.py was running successfully from the crontab until recently, but then stopped doing so. Thanks for pointing that out. I've changed it back now, so the service account has write access. I'm going to run some tests now to confirm that it's working.
Does anyone know who changed those permissions? That totally broke the helpdesk-vm.
from moc-openstack-tools.
I've confirmed that set-quotas.py now runs successfully, from cron. My test quota request to up my instances from 10 to 20 went through successfully. I am now closing this issue.
from moc-openstack-tools.
Related Issues (20)
- Email address checks should not be case sensitive
- Remove bare except blocks HOT 2
- Remove permanent resource requests
- Asking user to use osticketing system
- fix directory structure so that tests work
- user/project selection does not preserve row index
- new project email doesn't contain the name of the project HOT 6
- centralize exceptions into one file
- set search columns in config using column headers HOT 6
- HACKING.md suggests running a CentOS command on Ubuntu HOT 2
- Allow users to create project names with whitespace. HOT 1
- Default quota setting is incorrect (?) HOT 4
- check-approved-requests.py partially fails. HOT 1
- addusers Kaizen OpenStack creds visible in config file HOT 11
- Request processing and emailing both depend on same cron cycle
- Automation of projects visible in request form HOT 1
- User account request form: Time stamps captured are incorrect HOT 10
- Resetting password is a manual process HOT 1
- Need to remove preceeding and trailing whitespace from user input HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moc-openstack-tools.