Giter Site home page Giter Site logo

Comments (12)

Lematsu avatar Lematsu commented on July 21, 2024

Not sure exactly why yet, but this line of code is not being run code

from moc-openstack-tools.

pjd-nu avatar pjd-nu commented on July 21, 2024

First suspicion is that you're getting an exception on the line before

from moc-openstack-tools.

xuhang57 avatar xuhang57 commented on July 21, 2024

guess you can drop a python debugger and see whether it is called?

from moc-openstack-tools.

kamfonik avatar kamfonik commented on July 21, 2024

Some thoughts:

  1. 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?
  2. 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.

greyspectrum avatar greyspectrum commented on July 21, 2024

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.

pjd-nu avatar pjd-nu commented on July 21, 2024

from moc-openstack-tools.

greyspectrum avatar greyspectrum commented on July 21, 2024

@pjd-nu I'm not sure. I wasn't aware of any changes. I can ping you via email.

from moc-openstack-tools.

greyspectrum avatar greyspectrum commented on July 21, 2024

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.

greyspectrum avatar greyspectrum commented on July 21, 2024

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.

kamfonik avatar kamfonik commented on July 21, 2024

@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.

greyspectrum avatar greyspectrum commented on July 21, 2024

@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.

greyspectrum avatar greyspectrum commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.