Coder Social home page Coder Social logo

bigv-python's People

Contributors

hobthross avatar jiphex avatar skx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

clj rwillmer

bigv-python's Issues

Vanity Renaming

bigv.BigVAccount is a bit of a mouthful, it'd be nicer to rename everything to remove the BigV prefix, so BigVAccount => Account etc.

Would be a nightmare for existing scripts.

Error when creating VM

I'm trying to create a VM using your playbook as example.

It's failing with this error, any idea why?

/Users/rachel/bitbucket/luzme/devops/ve/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Traceback (most recent call last):
File "/Users/rachel/.ansible/tmp/ansible-tmp-1438593147.6-79780351145889/bigv-vm", line 1780, in
main()
File "/Users/rachel/.ansible/tmp/ansible-tmp-1438593147.6-79780351145889/bigv-vm", line 141, in main
zone_name=module.params['vm_zone_name'],
KeyError: 'vm_zone_name'

Re-running the modules with altered specs doesn't change the BigV VMs

This is partially by design. Steps to replicate:

  1. Create a VM with a set of specs
  2. Edit the Ansible playbook, change the specs (e.g add/remove memory or resize a disk)
  3. Re-run the playbook, it'll report no changes and make no changes to the running BigV VMs

I don't know what the best way around this is, whether we should change the specs (which would probably require restarting the VM anyway, and might cause issues in the case of making a disk smaller than it's filesystem?)

Auth session might time out

The Session Tokens from auth don't last forever - it's like 15 minutes or so - if a playbook is taking a long time to run, the token might time out.

We could refresh the token somehow (not sure how this'd work, would need a separate timer thread) or refresh it on use.

Error (Nonetype) when creating a new machine/disc

When creating a new disc or VM, the module throws an error. I've not yet managed to work out why, a backtrace is here:

natalya% ansible-playbook -i hosts playbook.yml
TASK: [create the archive disc] *********************************************** 
failed: [localhost] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
  File "/home/jhannah/.ansible/tmp/ansible-tmp-1398184110.54-136157089249001/bigv-disc", line 1222, in <module>
    main()
  File "/home/jhannah/.ansible/tmp/ansible-tmp-1398184110.54-136157089249001/bigv-disc", line 116, in main
    module.exit_json(changed=True,disc=newdisc.info())
AttributeError: 'NoneType' object has no attribute 'info'


FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/jhannah/playbook.retry

localhost                  : ok=0    changed=0    unreachable=0    failed=1 

The change does actually work, and if you run the command again, you'll see that the disc does exist.

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.