summaryrefslogtreecommitdiffstats
path: root/ci/03-maasdeploy.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-08-18Move help usage information to beginning of scriptMartin Kulhavy1-16/+18
If user requests the usage information (e.g. with `--help` argument), the information should be displayed right away. Currently the script first runs updates and installs of dependencies, which can take very long time. Change-Id: If5a75a98876ddeeb580764d823a11331ee8e9faf Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-08-17modified to do error checkingNarinder Gupta1-2/+7
Change-Id: I1292f0e6a9ba63965fe13229f11ebfdc914bd7b1 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-17delete pod if exist during maas deployment.narindergupta1-1/+2
Change-Id: Id045671934696ff96d46079c0f1a8e0ea2a172c2 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-17adding th elong option as command line.narindergupta1-0/+1
Change-Id: Ibe20b737a0ea9a6afc27ae490d8ff1ce6f61a5c0 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-17Merge "fix cpu model for aarch64 kvm"Narinder Gupta1-2/+4
2017-08-16modified to add the opensack api on seperate network.narindergupta1-20/+10
Change-Id: I8e909778cf50bc93118b68cfc2282c113fb7d7be Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-16fix cpu model for aarch64 kvmDi Xu1-2/+4
CPU mode 'host-model' for aarch64 kvm domain is not supported by hypervisor refer to issue #1673467 (https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1673467) Change-Id: Idad0a4a19a801200b5f87d43e2a62b21833ab6b1 Signed-off-by: Di Xu <di.xu@arm.com>
2017-08-15modified templates and added variable to easlity understand theNarinder Gupta1-1/+1
templates and added support for multiple networks. Change-Id: I1074c722c9007bd12c711dbfc58afa1a098d2a17 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-15Simplify argument parsing and add usage infoMartin Kulhavy1-29/+49
The code for initial parsing of the script arguments was simplified and added better checks of the arguments. For clearer information, usage information can be printed out. Pod special cases were removed (can be directly specified using custom). Change-Id: I42ca0ed703d5062f6deae74aa931513c235e2898 Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-08-15Improve and highlight logging to console (2)Martin Kulhavy1-1/+1
xtrace produces a lot of output that can be hard to read. This commit uses extra functions for formatted output (info and error), so that they stand out in the log and make it easier for the user to understand what is currently happening. Building up on change #38909: https://gerrit.opnfv.org/gerrit/38909 Change-Id: I0ddf9e0d3a12a62ae45c56d33a8d48c335b618a0 Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-08-14Adding the support of management netwok for pxe boot only.Narinder Gupta1-11/+21
Change-Id: Ice8bcbc26003efd53c50972742a53c7858e8deec Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-14modified to have better logic and by default fallback to amd64.Narinder Gupta1-16/+13
Change-Id: I161c544130b512a3715973f10a27335c29c8bd86 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-14Adding the storage space support in case it is defined.Narinder Gupta1-2/+2
Change-Id: Ic394674dd026f834dcee0db566dff7c654a2dba3 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-10Merge "add support for AArch64 when porting MAAS"Narinder Gupta1-4/+14
2017-08-10add support for AArch64 when porting MAASDi Xu1-4/+14
Change-Id: Id001bf15a3b4313d2677f078b501154609ee4f3b Signed-off-by: Di Xu <di.xu@arm.com>
2017-08-10Merge "fix some typos"Narinder Gupta1-2/+2
2017-08-09modfiied to correct API and osdomain nameNarinder Gupta1-2/+2
Change-Id: I9d7efa5117c90f64135140cce52a42a5f0ad96c3 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-10fix some typosDi Xu1-2/+2
Change-Id: I1373feb555056e8a7f95860aab90cf2c116b2b29 Signed-off-by: Di Xu <di.xu@arm.com>
2017-08-09Added architecture specific code as enabling for power.Narinder Gupta1-10/+11
Same should work for ARM as well. Change-Id: I72f38bf046b2bbded3bc49073d2541010f374d5e Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-08modfified to support Power architecture.narindergupta1-5/+24
Change-Id: I7e35cb9743322c1cf48b79a1a89fb3a8accdc8ae Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-08Improve and highlight logging to consoleMartin Kulhavy1-28/+39
xtrace produces a lot of output that can be hard to read. This commit adds a function to print important information messages in bold yellow, so that they stand out in the log and make it easier for the user to understand what is currently happening. Change-Id: I78d3dbd909beca30b36723b879b13436932629f9 Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-08-08Check that nodes have not failed commissioning or testingMartin Kulhavy1-3/+3
Both states 'Failed commissioning' and 'Failed testing' are reasons to stop the deployment process because their interface cannot be updated in the next step. Change-Id: I8e9f2b9de24c67c4e08f36b04b80e0c4a02c7604 Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-08-07Check that nodes have not failed commissioningMartin Kulhavy1-3/+11
If any of the nodes have failed during the commissioning phase, it makes no sense to proceed with the deployment (it will fail when trying to update the interfaces of the nodes). Change-Id: Idc9f202820555d08aa2b07d8296b79b7fea0337a Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-08-04Automatically add the virsh IP to known hostsMartin Kulhavy1-1/+13
During the generation of the bootstrap VM, ssh connection to the host machine is opened. If the IP is not yet in the list of known hosts, the installation blocks and waits for user input. The fix queries the host and adds the ssh fingerprint(s) to the list of known hosts, if it is not present already. Change-Id: I3e4bbb80811ab880e7271970713047c5d4ccca0f Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-07-25modified to fix deployment errorNarinder Gupta1-1/+2
Change-Id: Iec917ba5ae1e2bfa1f32d0682945dc770454570c Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-07-11Fix pip warningsMartin Kulhavy1-2/+2
1) `sudo pip` causes permission issues with the cache directory. 2) `pip list` without specifying format raises deprecation warning. Change-Id: If1c1941cce6195603231706776c0b73d5255e9cc Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-06-20modified to enable the virtual install.Narinder Gupta1-10/+20
Change-Id: I97b693fa6cd6eeb638d45fd444a5097a3387a0c9 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-06-02libvirtd and libvirt both needed.narindergupta1-1/+5
It seems some Ubuntu system shows libvirt and some do libvirtd. Based on when system deploys So lets try both. Change-Id: If31a6474b4c00ff335b4fe74b6d1be00e6f36575 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-05-14add define for virshGuo Ruijing1-1/+1
Change-Id: I5035b9162e0e49a710a47564bfb79aaf6f31b57e Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
2017-05-13typo corrected.Narinder Gupta1-6/+7
Change-Id: I1189a542d3975edc6ae3b6681f7dad31524dd4ca Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-05-12modfied to support intel lab.Narinder Gupta1-9/+10
Change-Id: I7a6c9711dd322fe47f79af325cbe8e3f7a727bce Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-05-12fix for virshurl in case of bootstrap.Narinder Gupta1-2/+2
Change-Id: I10af2cbc02c27ac906897c5241f296413dc41ae3 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-05-12correct and update few corner cases.Narinder Gupta1-16/+10
Change-Id: I055975abdd84fd3c89bade506d3269f75225addb Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-05-11Merge "modified to change the logic to create fabric and vlan if not exist. ↵Narinder Gupta1-172/+82
Otherwise use the existing one."
2017-05-11Merge "add remote virsh support for bootstrap"Narinder Gupta1-3/+20
2017-05-11add remote virsh support for bootstrapBlaisonneau David1-3/+20
Change-Id: Id28de3861a66a7b8d30efe9a30a22881bf41e991 Signed-off-by: Blaisonneau David <david.blaisonneau@orange.com>
2017-05-11modified to change the logic to create fabric and vlan if notNarinder Gupta1-172/+82
exist. Otherwise use the existing one. Change-Id: Iaac620ab74622543b205ed2fad5622492daea757 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-05-08Merge "enable new fabric and network creation"Narinder Gupta1-116/+69
2017-05-08enable new fabric and network creationBlaisonneau David1-116/+69
Usefull for jumphost with a different network mapping than pod servers (case of virtual jumphost) Change-Id: Ib358bf3c0a5cd89621dad791011b6fa92decdc95 Signed-off-by: Blaisonneau David <david.blaisonneau@orange.com>
2017-05-04Merge "Fix adding cloud-archive:newton issue in Ubuntu 16.04"Narinder Gupta1-0/+1
2017-05-02added support for install from git repository. please modifyNarinder Gupta1-3/+3
default_deployment_config.yaml to install from release repo for ocata,master etc. Also user can define their own URL and more information can be obtained at jujucharms.com Change-Id: I4943dbf68c6d980b2a2da65417b16631df768b48 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-05-01Fix adding cloud-archive:newton issue in Ubuntu 16.04Guo Ruijing1-0/+1
Change-Id: Ib8946ca47cefbabd247b98ad0dc6d4f0789e767e Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
2017-04-28modfiied the mac address also reimport the iamges.narindergupta1-2/+2
Change-Id: I362481f7456ac6b93d5f11ac2ea62f8fe5330e99 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-04-28modified to correct the error ID failed in case of error.narindergupta1-2/+4
Change-Id: I669aeccd0ceef758fa9eee87d46426bd6a78230b Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-04-26add function to delete existing netwBlaisonneau David1-2/+8
Change-Id: Ib2b61aa1c61557beb6b879cc879e57235aced866 Signed-off-by: Blaisonneau David <david.blaisonneau@orange.com>
2017-04-26add fabric generation functionBlaisonneau David1-5/+67
Change-Id: Ia15c7053294f84a35ae6d1af3bd5efef03bbb79f Signed-off-by: Blaisonneau David <david.blaisonneau@orange.com>
2017-04-26modify the maas to use the interface name as per yaml filenarindergupta1-6/+11
Change-Id: I6a060757a39786c073c2567ca73502267d8c271b Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-03-31change default network gateway on containers with a public networkBlaisonneau David1-1/+2
Change-Id: Ic6b08b2942e94e8d8b9e7f46519058fcf3536d74 Signed-off-by: Blaisonneau David <david.blaisonneau@orange.com>
2017-03-23Add interface renaming on maas for heterogeneous hardware configBlaisonneau David1-5/+21
Change-Id: I7b26821802f1843d738a116082b70bd27b35b35b Signed-off-by: Blaisonneau David <david.blaisonneau@orange.com>
2017-03-21correct of maas deploy and orange pod2 updateBlaisonneau David1-116/+58
MAAS deploy correction to manage heterogeneous hardware (different interfaces mapping or naming amoung nodes, and configuration of a VLAN on an interface without network_cidr) Change-Id: Ib3825bd8600cf62637cee85779d9ee0a55f896c4 Signed-off-by: Blaisonneau David <david.blaisonneau@orange.com>