summaryrefslogtreecommitdiffstats
path: root/utils/fetch_os_creds.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-09-01Apex: Need to use sudo for virsh for fetch credsTim Rozet1-1/+1
Change-Id: I28e259bf8cdc7431a99227ba3e1eb8615744851e Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-01Merge "Apex, Yardstick: Fixes fetching creds"Tim Rozet1-0/+7
2017-08-29Apex, Yardstick: Fixes fetching credsTim Rozet1-0/+7
There is a bug where by default the INSTALLER_IP is set to 192.168.X.X and in yardstick the IP is never found for Apex before trying to fetch, so fetching fails to an invalid IP address. This patch makes fetch os creds more robust to check if the INSTALLER_IP is valid and if not, then attempt to find the correct IP for Apex. Change-Id: Ie18d6e70f77ccff3592fb37c6d0b6e87b6435cf8 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-08-28[fuel] Handle os cacert for baremetal deploymentsMichael Polenchuk1-0/+4
Change-Id: I02503772dc5ed59562c2e0aba96280e2cae1da50 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2017-08-24utils/fetch_os_creds.sh: Fuel: Robust creds fetchAlexandru Avadanii1-1/+1
In case ctl01 node is down, the current mechanism will return invalid data (the string "Minion") instead of a valid controller IP. Since "keystonercv3" is present on all controller nodes at </root>, adjust the credentials fetch to use the first online controller node. Change-Id: I4ba15bb40d465b112c5e9fc827e3e2a69e671b26 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-07-16[Compass] Move cacert docker copy after chown in fetch_os_credswutianwei1-1/+1
sometimes it can't copy os_cacert but copy opnfv_openrc. it cause an issue and didn't execute the command chown. so the opnfv_openrc will belong to root, which will cause errors next time. Change-Id: I2955ba347d399d65c9e5cd566235be06fb7c30af Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-14Compass: add cacert file to enable SSL verificationLinda Wang1-2/+5
Now only Openstack https is supported by OSA repo LXC in compass deployment, so certification file is required to enable SSL verification. After [1] is merged, the cacert file os_cacert will be provided in the container compass-tasks. [1]: https://gerrit.opnfv.org/gerrit/#/c/37451/ Change-Id: Id747cef1955733a1c93feb20a26d503a5de1fb93 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-07Change owner of the openrc file for compassLinda Wang1-0/+1
The jenkins user is not permitted to view openrc file with root owner and group.[1] cat: /home/jenkins/opnfv-openrc.sh: Permission denied [1]: https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/1293/console Change-Id: I89d0597c8f0ece00f70fd6622048794b15510636 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-06Compass: add retrieving OS credentials for ContainersLinda Wang1-27/+30
Compass has changed the mechanism of deployment (Containers) in master, so we adjust the way to fetch the OS credentials file. Change-Id: If126ac9b081589c21466b59eae05b107bf6dc425 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-15Fuel: adds retrieving OS credentials for MCPAndrii Ostapenko1-30/+40
Adjusts retrieving OS credentials for MCP (master branch in fuel repo) Also removes legacy admin_ip and public_ip retrieving. Change-Id: Ib7781a3701c7281b781872b18150332b94298260 Signed-off-by: Andrii Ostapenko <aostapenko@mirantis.com>
2017-05-24Functest: Adds failure checking + fixes fetch os credsTim Rozet1-3/+5
Change-Id: Ib8a3ff3a747be55d8e23513bd028d934fef02eb8 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-05-24Functest: removes redundant exit 0 from fetch credsTim Rozet1-2/+0
Also allows unset and pipefail explicitly in set-functest-env.sh Change-Id: I06ae718f563fed0596a37cec1b3a78e44ee7ea5d Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-05-08Apex: fixes overcloudrc v3 filenameTim Rozet1-1/+1
Change-Id: I086adca7f9671c2c5e6fd04a1ec339e8b22f1de4 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-05-03[Functest][Apex] Use v3 credentialsjose.lausuch1-1/+1
Soon, Functest will start using only public endpoints and will remove admin connectivity to the deployments. Change-Id: I2089ccd3d6e7f1acda7b46d3104a8a78a47af8ff Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-28add openrc fetching for daisy installerSerenaFeng1-0/+11
JIRA: FUNCTEST-743 Change-Id: Ic9153575bd43bbc67042cd69a996ad18175427a7 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-02-09[bugfix] wrong regular expression to fetch controller ip by hostnamemeimei1-1/+1
Change-Id: Idcf6739498837e828dd65897f599dada720fb48e Signed-off-by: meimei <meimei@huawei.com>
2017-01-24[Fuel] [Functest] Change AUTH_URL to use v3 in the RC filejose.lausuch1-0/+8
Although Fuel default RC file sets export OS_IDENTITY_API_VERSION=3, the AUTH_URL is poiting to ip:port. By adding /v3 at the end of the URL, some API calls work. Change-Id: I745e38524cef6105c23950f318d392e7473366bf Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-01-17Use public endpoints in the RC file for compass onlyjose.lausuch1-0/+11
Change-Id: Ic6be1e5559653145e6a80442b205533901c0a2bd Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-01-11[FUNCTEST-FUEL] Remove URL swapNikolas Hermanns1-5/+0
Since the virtual deployments are now able to use the internal mgmt network we remove the swap Change-Id: I8eed4dd8218a78c697ffde4716c35170fa72d814 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-01-11[Functest] Removing admin to Public enpoint swapNikolas Hermanns1-7/+0
The openstack.creds file is not aligned with commonly used methodologies. Change-Id: Iba0afc83ebbe35dd189cc35e5bf682680fc96535 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-01-11[Functest][Keystone] --long argument not available anymoreNikolas Hermanns1-2/+2
For newton we have to grep differently for the public ip. Change-Id: I646358005b163829004e0016514e254575d03157 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2016-12-29Fix compass public vip fetch bug in NewtonQiLiang1-3/+11
Error log: More than one endpoint exists with the name 'identity'. fetch_os_creds.info: public_ip: Change-Id: Ie7c8eeec5e84de4c38a17b4e718be65f36c562a7 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-08-15[compass]:[merge after 18665]rename region name to be unifiedMatthewLi1-1/+0
JIRA: COMPASS-457 please merge after https://gerrit.opnfv.org/gerrit/#/c/18665/ Change-Id: Ie73017dccc8e203fe14c75702e797cb63f20b462 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2016-08-03[compass] change the cmd of getting endpoint because of ugly warningsmeimei1-4/+2
Change-Id: I5082a6fb3a2d27d17753cf42dc1555cbb3d8eb9a Signed-off-by: meimei <meimei@huawei.com>
2016-07-26Replace single by double quotes in fetch credentialsjose.lausuch1-1/+1
'fuel --env $env_id' fails because a variable in single quotes is not read, it is treated as a literal string. When using double quotes, the variable is replaced by its value Change-Id: I39e777ec27c547e012d6f4674bc24e20d421889c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-07-26Use head instead of tailDimitri Mazmanov1-1/+1
When retreiving an environment id use head to get the first available environment Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
2016-07-25Make environment id dynamicDimitri Mazmanov1-1/+8
Removed hardcoded value of fuel environment. The value is now fetched from an environment variable FUEL_ENV. Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> Change-Id: Iae8e5139f013ca7947e79a1a9a44efd82f48b95b
2016-07-25Always use controller from environment 1Dimitri Mazmanov1-1/+1
In case of multiregion fuel deployments (which is implemented using fuel environments), always use a controller from the first environment (RegionOne), as for multisite RegionOne is the master region. This fix will not affect single region deployments, because the -env 1 property will result in the same single output. Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
2016-06-20Fix to correct IP address logic in previous changeStefan K. Berg1-1/+2
Commit 622002bea0a0eda42e9a76d14af4bdff47c692d6 is breaking the Fuel Yardstick testing, this is an emergency fix. The change introduced spaces in the controller_ip address, breaking later ssh and scp commands! Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com> Change-Id: Ied329103a3568c523ec8ab16a7df5a4763ec14b3
2016-06-18Change IP parsing to not depend on spaces in namesStanislaw Kardach1-1/+1
Prior method of extracting the controller IP was relying on the fact that default node names have spaces in them and hence generate 9 fields before the IP address. This change proposes to change awk tokenizing to divide string by column separator in `fuel node` output. Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com>
2016-06-14Fix the "The controller is not up" problem caused by the fuel9.0 changing ↵zhifeng.jiang1-1/+1
the online state form "True" to "1". JIRA:QTIP-85 Change-Id: Iaa07af84954bb590801336f2ca44e621c97baeb9 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
2016-03-23Adding a fix needed for Fuel virtual deploymentJonas Bjurel1-3/+11
NOT VERIFIED Change-Id: Iabe82f34c6a538646469d72e612f63e51917ae98 Signed-off-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
2016-02-05Fix: OS_AUTH_URL for fuelJo¶rgen Karlsson1-1/+1
Change-Id: Ic0f9b66b1cec3d4249bf979e2a4ca5b8d803ca0e Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
2016-01-15compass-bugfix: fetch os creds from host1-5meimei1-1/+1
Change-Id: I9acce6f1dabb5186375894cdcdc83b392e9d872e Signed-off-by: meimei <meimei@huawei.com>
2015-12-09add joid to fetch_osMorgan Richomme1-0/+5
temp implementation: do nothing, rely on volume declared during the creation of the docker file JIRA: FUNCTEST-97 Change-Id: I8c2e935ab8a72b5593d68236b9573b380a61dcfa Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-12-08Add chmod 600 to id_rsa ssh key before scp to Instack VM when fetching credsjose.lausuch1-0/+3
Change-Id: I7cb34330dbfaa94ac5b8d2efd9df6f257eccfa6c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-08Fix ssh issues when fetching the creds of Instack VM (Apex)jose.lausuch1-1/+1
JIRA:RELENG-61 Change-Id: I879fa009d53b6ea586b1fd04c52a7c3c23918427 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-07Add Apex installer in fetch_os_credentials.shjose.lausuch1-26/+37
JIRA:RELENG-61 Change-Id: I9017118a42f0794ac34ef03e6788366322ffd550 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-11-17[functest] modify releng/utils/fetch_os_creds.sh to adapt compassmeimei1-6/+4
JIRA: COMPASS-158 Change-Id: I3b242f7902e7bd6c7079053bfad3b9405d559bdb Signed-off-by: meimei <meimei@huawei.com>
2015-09-08Bugfix: corrected fetch credentials for foreman installerjose.lausuch1-2/+3
JIRA: FUNCTEST-43 Change-Id: Id820ef2b2cd248dbc7baa6887312ae90a301a8a2 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-08-27Revert "source creds retrieved dynamically by the script"Morgan Richomme1-1/+0
This reverts commit d72b560c1fa16780f1760c243d05fcb669e515c0.
2015-08-27source creds retrieved dynamically by the scriptMorgan Richomme1-0/+1
so far we just cat them and source them in the functest part. It is better to keep all the creds related action in the fetch creds scripts JIRA: FUNCTEST-42 Change-Id: I4c422237398baf13a1af73232a74bd36f82faca7 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-08-14add an option "compass" in fetch_os_creds.shm001331421-0/+27
JIRA: COMPASS-9 Change-Id: I8df14c81eb4ef02b6a02e01f2d0f57acbb6c102b Signed-off-by: m00133142 <meimei@huawei.com>
2015-06-30Get vars from env for fetch_os_creds.shFatih Degirmenci1-1/+5
The vars needed by script is set from env if they're available. Default destination is set to $HOME/opnfv-openrc.sh JIRA: FUNCTEST-16 Change-Id: I92e4498d342f784f9ffdea7a87546b4fbacc09f7 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
2015-06-30fetch_os_creds.sh : small correction for Fuel to grab the public API correctlyjose.lausuch1-2/+2
JIRA: FUNCTEST-16 Change-Id: I6a8d1ff2a58c599cd84426d580024bd962fae51f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-06-29Added script to fetch the OpenStack credentials file for Fuel and Foremanjose.lausuch1-0/+139
JIRA: FUNCTEST-16 Example FUEL: ./fetch_os_creds.sh -d $HOME/creds -i fuel -a 10.20.0.2 Example Foreman: ./fetch_os_creds.sh -d $HOME/creds -i foreman -a 172.30.10.73 Change-Id: I4bddfad43f6200572615da66915822b3dc2f3957 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>