aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorAhmed Alabulrahman <ahmed.alabdulrahman@amdocs.com>2017-09-06 17:28:12 -0400
committerAhmed Alabulrahman <ahmed.alabdulrahman@amdocs.com>2017-09-07 11:29:07 -0400
commit83509096e40a69dcdb5f8ec1a7d1a6a0f03b4ffa (patch)
tree5b730f8d2a84dc409879ef83d7490c3c30f2ce75 /kubernetes
parent449c79f95b84e406d0ad5a0a9fa1d5de4d65b55d (diff)
fix robot init custome
removed mounted keystone_interface file removeed mounted keystone interface file and made required changes to deployment yaml Issue-ID: OOM-285 Change-Id: Ic1cf27bfba96433b4c3d8ad86794ca1ff3d9ea0a Signed-off-by: Ahmed Alabulrahman <ahmed.alabdulrahman@amdocs.com>
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/config/docker/init/src/config/robot/robot/resources/openstack/keystone_interface.robot55
-rw-r--r--kubernetes/robot/templates/robot-deployment.yaml5
2 files changed, 0 insertions, 60 deletions
diff --git a/kubernetes/config/docker/init/src/config/robot/robot/resources/openstack/keystone_interface.robot b/kubernetes/config/docker/init/src/config/robot/robot/resources/openstack/keystone_interface.robot
deleted file mode 100644
index 6c48e12086..0000000000
--- a/kubernetes/config/docker/init/src/config/robot/robot/resources/openstack/keystone_interface.robot
+++ /dev/null
@@ -1,55 +0,0 @@
-*** Settings ***
-Documentation The main interface for interacting with Openstack Keystone API. It handles low level stuff like managing the authtoken and Openstack required fields
-Library OpenstackLibrary
-Library RequestsLibrary
-Library UUID
-Library Collections
-Library OperatingSystem
-Resource ../global_properties.robot
-Resource ../json_templater.robot
-Resource openstack_common.robot
-
-*** Variables ***
-${OPENSTACK_KEYSTONE_API_VERSION} /v2.0
-${OPENSTACK_KEYSTONE_AUTH_PATH} /tokens
-${OPENSTACK_KEYSTONE_AUTH_BODY_FILE} robot/assets/templates/keystone_get_auth.template
-${OPENSTACK_KEYSTONE_TENANT_PATH} /tenants
-
-*** Keywords ***
-Run Openstack Auth Request
- [Documentation] Runs an Openstack Auth Request and returns the token and service catalog. you need to include the token in future request's x-auth-token headers. Service catalog describes what can be called
- [Arguments] ${alias} ${username}= ${password}=
- ${username} ${password}= Set Openstack Credentials ${username} ${password}
- ${session}= Create Session keystone ${GLOBAL_OPENSTACK_KEYSTONE_SERVER} verify=True
- ${uuid}= Generate UUID
- ${data_template}= OperatingSystem.Get File ${OPENSTACK_KEYSTONE_AUTH_BODY_FILE}
- ${arguments}= Create Dictionary username=${username} password=${password}
- ${data}= Fill JSON Template ${data_template} ${arguments}
- ${data_path}= Catenate ${OPENSTACK_KEYSTONE_API_VERSION}${OPENSTACK_KEYSTONE_AUTH_PATH}
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
- Log Sending authenticate post request ${data_path} with headers ${headers} and data ${data}
- ${resp}= Post Request keystone ${data_path} data=${data} headers=${headers}
- Save Openstack Auth ${alias} ${resp.text}
- Log Received response from keystone ${resp.text}
-
-Get Openstack Tenants
- [Documentation] Returns all the openstack tenant info
- [Arguments] ${alias}
- ${resp}= Internal Get Openstack With Region ${alias} ${GLOBAL_OPENSTACK_KEYSTONE_SERVICE_TYPE} region= url_ext=${OPENSTACK_KEYSTONE_TENANT_PATH} data_path=
- [Return] ${resp.json()}
-
-Get Openstack Tenant
- [Documentation] Returns the openstack tenant info for the specified tenantid
- [Arguments] ${alias} ${tenant_id}
- ${resp}= Internal Get Openstack With Region ${alias} ${GLOBAL_OPENSTACK_KEYSTONE_SERVICE_TYPE} region= url_ext=${OPENSTACK_KEYSTONE_TENANT_PATH} data_path=/${tenant_id}
- [Return] ${resp.json()}
-
-Set Openstack Credentials
- [Arguments] ${username} ${password}
- Return From Keyword If '${username}' != '' ${username} ${password}
- ${user} ${pass}= Get Openstack Credentials
- [Return] ${user} ${pass}
-
-Get Openstack Credentials
- Dictionary Should Contain Key ${GLOBAL_VM_PROPERTIES} openstack_username
- [Return] ${GLOBAL_VM_PROPERTIES['openstack_username']} ${GLOBAL_VM_PROPERTIES['openstack_password']} \ No newline at end of file
diff --git a/kubernetes/robot/templates/robot-deployment.yaml b/kubernetes/robot/templates/robot-deployment.yaml
index 56feb0c1be..5c96058895 100644
--- a/kubernetes/robot/templates/robot-deployment.yaml
+++ b/kubernetes/robot/templates/robot-deployment.yaml
@@ -20,8 +20,6 @@ spec:
volumeMounts:
- name: robot-eteshare
mountPath: /share
- - name: robot-resources-openstack-keystone-int
- mountPath: /var/opt/OpenECOMP_ETE/robot/resources/openstack/keystone_interface.robot
- name: robot-resources-asdc-interface
mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
- name: robot-resources-policy-interface
@@ -41,9 +39,6 @@ spec:
- name: robot-eteshare
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
- - name: robot-resources-openstack-keystone-int
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/openstack/keystone_interface.robot
- name: robot-resources-asdc-interface
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot