summaryrefslogtreecommitdiffstats
path: root/ci/03-maasdeploy.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-01-24modified to satified the lab issues it seems sudo was required inNarinder Gupta1-1/+1
his environment. Change-Id: If406bbeb4577369a5b7c7f76a9e0255eef2afbcf Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-12-15added bionic support with snap deployment. Alos fixes.Narinder Gupta1-19/+32
Change-Id: I6cf005194c7aff6845bfb749a45cd674531fedd4 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-12-07adding snap install of MAAS.Narinder Gupta1-39/+50
Change-Id: I4f8ad592138ae6a372cfad199cc066b4e5e5ab18 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-12-01modified for bionic support for future deployment.Narinder Gupta1-4/+21
Change-Id: Ife9d8e071d2ffb36238decfa0f1d934d1a0b0c88 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-12-01Revert "adding latest release charm support."Narinder Gupta1-21/+3
This reverts commit 9f0a678ee9d4a5a0afc620f93edb14b3e4dcf56b. Change-Id: I1671d69dfcd8ebd3dd60a495de5d8cdca65ab1a2 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-12-01adding latest release charm support.Narinder Gupta1-3/+21
Change-Id: I4e8bf6ccf9081e3b0bc8c544cd7a6ecb9156ea28 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-11-21add pod19 without vlan.Narinder Gupta1-8/+8
Change-Id: I0764f19e0389921a7240802ebce0c484837f19ee Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-11-17modified to correct the labconfig.yaml and reserver more ip.Narinder Gupta1-0/+25
Change-Id: If88127b0a69186cc27a875c2ae544328e088dfd9 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-11-16modfied to comment VLAN as some issues today.Narinder Gupta1-3/+4
Change-Id: I7d55a0543ecf8f1b9323c95747e4ad84df3d7180 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-11-07few more fixed for ARM bare metal deployment.Narinder Gupta1-2/+2
Change-Id: I9cec17471e962bbf161e9fe331b61d5cb10171c8 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-10-31adding ceph support for Kubernetes.Narinder Gupta1-12/+19
Change-Id: If7cf0add214da153daf39967fac15ba027cc3885 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-10-30modified as deployment failing on this.Narinder Gupta1-1/+1
Change-Id: I62aa32f7dacedc3008565ffd005d45e431485bb9 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-10-18cleanup codeGuo Ruijing1-18/+2
1. remove unused code due to juju>2 & maas>2.2 in Ubuntu16.04 2. remove deprecated 03-maasdeploy.sh 3. remove other unused code Change-Id: I20fd0e96400db1262b0df3ef2b502c8001dd5b76 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
2017-09-25add key for cloud archiveGuo Ruijing1-0/+2
key for cloud archive is missing in xenial cloud image. Change-Id: I1f38c90ba5e77ebb99d5075fb1988ac82d47718f Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
2017-09-01modified to autostart the VMs created for bootstrap and virtualNarinder Gupta1-0/+4
deployment. Change-Id: I7afcc6e382f7575fbd2741cded3915763aafe6f6 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
2017-08-22Move tools.sh to ci/common dirMartin Kulhavy1-1/+1
This file is only sourced by other script and is not meant to be executed (contains only functions). Change-Id: I41253b73f720e4b7e987c5164901253c7e51ee8b Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
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."