rcbops-qe / monster

Deployment/Orchestration Engine
Apache License 2.0
4 stars 8 forks source link

Monster unable to retrieve relevant Public Cloud info #164

Closed jpmontez closed 10 years ago

jpmontez commented 10 years ago

When Monster attempts to retrieve images/networks setup on Public Cloud, it craps out.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/root/monster/monster/provisioners/openstack.py", line 99, in chef_instance
    flavor=flavor)
  File "/root/monster/monster/provisioners/openstack.py", line 147, in build_instance
    flavor_obj = self._client_search(self.compute_client.flavors.list,
AttributeError: 'NoneType' object has no attribute 'flavors'
<Greenlet at 0x25390f0: <bound method Rackspace.chef_instance of rackspace>(class: Chef
        status : provisioning
        has_controller, 'ubuntu-default-chefserver', flavor='1GBP')> failed with AttributeError

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/root/monster/monster/provisioners/openstack.py", line 99, in chef_instance
    flavor=flavor)
  File "/root/monster/monster/provisioners/openstack.py", line 147, in build_instance
    flavor_obj = self._client_search(self.compute_client.flavors.list,
AttributeError: 'NoneType' object has no attribute 'flavors'
<Greenlet at 0x25392d0: <bound method Rackspace.chef_instance of rackspace>(class: Chef
        status : provisioning
        has_controller, 'ubuntu-default-controller', flavor='2GBP')> failed with AttributeError

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/root/monster/monster/provisioners/openstack.py", line 99, in chef_instance
    flavor=flavor)
  File "/root/monster/monster/provisioners/openstack.py", line 147, in build_instance
    flavor_obj = self._client_search(self.compute_client.flavors.list,
AttributeError: 'NoneType' object has no attribute 'flavors'
<Greenlet at 0x2539370: <bound method Rackspace.chef_instance of rackspace>(class: Chef
        status : provisioning
        has_controller, 'ubuntu-default-compute', flavor='8GBP')> failed with AttributeError

Traceback (most recent call last):
  File "compute.py", line 234, in <module>
    parser.dispatch()
  File "/usr/local/lib/python2.7/dist-packages/argh/helpers.py", line 53, in dispatch
    return dispatch(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 124, in dispatch
    for line in lines:
  File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 200, in _execute_command
    for line in result:
  File "/usr/local/lib/python2.7/dist-packages/argh/dispatching.py", line 183, in _call
    result = args.function(*positional, **keywords)
  File "compute.py", line 44, in build
    name, template, branch, cprovisioner, template_path)
  File "/root/monster/monster/deployments/chef_deployment.py", line 207, in fromfile
    branch)
  File "/root/monster/monster/nodes/chef_node.py", line 171, in from_chef_node
    ipaddress = node['ipaddress']
TypeError: 'NoneType' object has no attribute '__getitem__'