#Licensed to the Apache Software Foundation (ASF) under one #or more contributor license agreements. See the NOTICE file #distributed with this work for additional information #regarding copyright ownership. The ASF licenses this file #to you under the Apache License, Version 2.0 (the #“License”); you may not use this file except in compliance #with the License. You may obtain a copy of the License at
#Unless required by applicable law or agreed to in writing, #software distributed under the License is distributed on an #“AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY #KIND, either express or implied. See the License for the #specific language governing permissions and limitations #under the License.
#Cloud AutoDeploy
Scripts here are used to refresh the builds of the management server with those made out of our CI system. The CI system is internal at the moment.
###Dependencies
build.cfg - contains build information given to the CI system - branch, BUILDABLE_TARGET - distro of mgmt server tarball
You may leave the rest as they are defaults and should work fine.
environment.cfg - typically the VM where you intended to install above build of mgmt server. SSH access to be available and credentials are in the config file.
deployment.cfg - the JSON network model configuration file generated by Marvin so the mgmt server can be configured. See the Marvin tutorial on how to fetch these.
other options - skip-host - will skip IPMI/PXE refresh of the hosts - install-marvin - will pull the latest marvin tarball from the CI system and install it
Once you have the available configuration setup in the above .cfg files simply run the following.
$ python configure.py -b build.cfg -e environment.cfg -d deployment.cfg [[--skip-host] --install-marvin]
OR
$ python configure.py -n <build-number> -e environment.cfg -d deployment.cfg [[--skip-host] --install-marvin]
$ python restartMgmt.py -e environment.cfg
$ nosetests -v --with-marvin --marvin-config=deployment.cfg --result-log=result.log -w /tmp
$ python restartMgmt.py -e environment.cfg
$ nosetests -v --with-marvin --marvin-config=deployment.cfg --result-log=result.log testSetupSuccess.py