rcbops-qe / monster

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

Not using razor still breaks everything #163

Closed jpmontez closed 10 years ago

jpmontez commented 10 years ago

Monster dies when razor isn't configured--this is even when you're not using it.

root@vagrant-ubuntu-precise-64:~/monster# python compute.py build -n ubuntu-default --branch master --template ubuntu-default --config pubcloud-neutron.yaml --secret-path secret.ya ml --log log.txt --log-level DEBUG --provisioner rackspace 2014-04-02 21:18:01,456 RPC-QE INFO compute: Building deployment object for ubuntu-default 2014-04-02 21:18:01,471 RPC-QE INFO chef_deployment: Using previous deployment:ubuntu-default 2014-04-02 21:18:01,495 RPC-QE DEBUG chef_environment: chef_type: environment 2014-04-02 21:18:01,495 RPC-QE DEBUG chef_environment: default_attributes: {} 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: name: ubuntu-default 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: override_attributes: {} 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: chef_server_name: None 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: remote_api: None 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: cookbook_versions: {} 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: local_api: <chef.api.ChefAPI object at 0x2a2df50> 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: json_class: Chef::Environment 2014-04-02 21:18:01,496 RPC-QE DEBUG chef_environment: description: ubuntu-default 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 164, in fromfile return cls.from_chef_environment(name) File "/root/monster/monster/deployments/chef_deployment.py", line 258, in from_chef_environment provisioner = get_provisioner(provisioner_name) File "/root/monster/monster/provisioners/util.py", line 23, in get_provisioner return module_classes(identifier)[provisioner]() File "/root/monster/monster/provisioners/razor2.py", line 17, in __init__ self.url = url or util.config['secrets']['razor']['url'] KeyError: 'razor'

jacobwagner commented 10 years ago

This is because you failed a build and the chef environment got created but the provisioner didnt get saved so when monster ran it wanted to build from the environment, which didnt have a provisioner set, so it defaulted to razor2.

This is a save when we know issue or a delete a non built environment of failure issue