Merge "Update default floating management address"
This commit is contained in:
commit
6817c1cc15
@ -7,7 +7,7 @@
|
||||
username=admin
|
||||
tenant=admin
|
||||
authorization_protocol=http
|
||||
authorization_ip=192.168.204.2
|
||||
authorization_ip=192.168.204.1
|
||||
authorization_port=5000
|
||||
user_domain_name=Default
|
||||
project_domain_name=Default
|
||||
@ -17,7 +17,7 @@ keyring_service=CGCS
|
||||
username=admin
|
||||
tenant=admin
|
||||
authorization_protocol=http
|
||||
authorization_ip=192.168.204.2
|
||||
authorization_ip=192.168.204.1
|
||||
authorization_port=5000
|
||||
user_domain_name=Default
|
||||
project_domain_name=Default
|
||||
@ -91,7 +91,7 @@ service_type=faultmanagement
|
||||
endpoint_type=admin
|
||||
|
||||
[amqp]
|
||||
host=192.168.204.2
|
||||
host=192.168.204.1
|
||||
port=5672
|
||||
user_id=guest
|
||||
password=guest
|
||||
|
@ -3,7 +3,7 @@ TENANT_ID=`openstack token issue | grep "| project_id |" | cut -f3 -d'|' | tr -d
|
||||
TOKEN_ID=`openstack token issue | grep "| id |" | cut -f3 -d'|' | tr -d '[[:space:]]'`
|
||||
|
||||
# Specify management IP
|
||||
MGMT_IP=192.168.204.2
|
||||
MGMT_IP=192.168.204.1
|
||||
|
||||
1. Create a VM
|
||||
--------------
|
||||
|
@ -13,10 +13,10 @@ TOKEN_ID=`openstack token issue | grep "| id |" | cut -f3 -d'|' | tr -d
|
||||
:: OpenStack HEAT ::
|
||||
--------------------
|
||||
curl -i -X GET -H 'Content-Type: application/json' -H 'Accept: application/json' \
|
||||
http://192.168.204.2:8004
|
||||
http://192.168.204.1:8004
|
||||
|
||||
curl -i -X GET -H 'Content-Type: application/json' -H 'Accept: application/json' \
|
||||
http://192.168.204.2:8004/
|
||||
http://192.168.204.1:8004/
|
||||
|
||||
---------------
|
||||
:: MANO HEAT ::
|
||||
@ -65,8 +65,8 @@ TOKEN_ID=`openstack token issue | grep "| id |" | cut -f3 -d'|' | tr -d
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
http://192.168.204.2:8004/v1/${TENANT_ID}/stacks \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://192.168.204.1:8004/v1/${TENANT_ID}/stacks \
|
||||
-d @heat_create_stack_request.txt
|
||||
|
||||
---------------
|
||||
@ -89,7 +89,7 @@ TENANT_ID=`openstack token issue | grep "| project_id |" | cut -f3 -d'|' | tr -d
|
||||
TOKEN_ID=`openstack token issue | grep "| id |" | cut -f3 -d'|' | tr -d '[[:space:]]'`
|
||||
|
||||
curl -i -X DELETE -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
http://192.168.204.2:8004/v1/${TENANT_ID}/stacks/TEST_STACK/${TEST_STACK_ID}
|
||||
http://192.168.204.1:8004/v1/${TENANT_ID}/stacks/TEST_STACK/${TEST_STACK_ID}
|
||||
|
||||
---------------
|
||||
:: MANO HEAT ::
|
||||
@ -110,7 +110,7 @@ TENANT_ID=`openstack token issue | grep "| project_id |" | cut -f3 -d'|' | tr -d
|
||||
TOKEN_ID=`openstack token issue | grep "| id |" | cut -f3 -d'|' | tr -d '[[:space:]]'`
|
||||
|
||||
curl -i -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
http://192.168.204.2:8004/v1/${TENANT_ID}/stacks/TEST_STACK/${TEST_STACK_ID}
|
||||
http://192.168.204.1:8004/v1/${TENANT_ID}/stacks/TEST_STACK/${TEST_STACK_ID}
|
||||
|
||||
---------------
|
||||
:: MANO HEAT ::
|
||||
@ -133,7 +133,7 @@ TENANT_ID=`openstack token issue | grep "| project_id |" | cut -f3 -d'|' | tr -d
|
||||
TOKEN_ID=`openstack token issue | grep "| id |" | cut -f3 -d'|' | tr -d '[[:space:]]'`
|
||||
|
||||
curl -i -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
http://192.168.204.2:8004/v1/${TENANT_ID}/stacks
|
||||
http://192.168.204.1:8004/v1/${TENANT_ID}/stacks
|
||||
|
||||
---------------
|
||||
:: MANO HEAT ::
|
||||
|
@ -16,7 +16,7 @@ cat > create_serial.txt << EOF
|
||||
"alarm-restrictions": "relaxed"
|
||||
}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy -d @create_serial.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy -d @create_serial.txt
|
||||
|
||||
cat > create_parallel.txt << EOF
|
||||
{
|
||||
@ -29,46 +29,46 @@ cat > create_parallel.txt << EOF
|
||||
"alarm-restrictions": "relaxed"
|
||||
}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy -d @create_parallel.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy -d @create_parallel.txt
|
||||
|
||||
Show strategy
|
||||
-------------
|
||||
curl -i -X GET -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy
|
||||
curl -i -X GET -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy
|
||||
|
||||
Abort strategy
|
||||
--------------
|
||||
cat > abort.txt << EOF
|
||||
{"action": "abort"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy/actions -d @abort.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy/actions -d @abort.txt
|
||||
|
||||
Abort strategy stage
|
||||
--------------------
|
||||
cat > abort_stage.txt << EOF
|
||||
{"action": "abort-stage", "stage-id": "33"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy/actions -d @abort_stage.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy/actions -d @abort_stage.txt
|
||||
|
||||
Apply strategy
|
||||
--------------
|
||||
cat > apply.txt << EOF
|
||||
{"action": "apply-all"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy/actions -d @apply.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy/actions -d @apply.txt
|
||||
|
||||
Apply strategy stage
|
||||
--------------------
|
||||
cat > apply_stage.txt << EOF
|
||||
{"action": "apply-stage", "stage-id": "33"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy/actions -d @apply_stage.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy/actions -d @apply_stage.txt
|
||||
|
||||
Delete strategy
|
||||
---------------
|
||||
cat > delete.txt << EOF
|
||||
{}
|
||||
EOF
|
||||
curl -i -X DELETE -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-patch/strategy -d @delete.txt
|
||||
curl -i -X DELETE -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-patch/strategy -d @delete.txt
|
||||
|
||||
Upgrade Orchestration
|
||||
=====================
|
||||
@ -81,51 +81,51 @@ Create strategy
|
||||
cat > create_serial.txt << EOF
|
||||
{ "worker-apply-type": "serial", "storage-apply-type": "serial", "alarm-restrictions": "relaxed" }
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy -d @create_serial.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy -d @create_serial.txt
|
||||
|
||||
cat > create_parallel.txt << EOF
|
||||
{ "worker-apply-type": "parallel", "max-parallel-worker-hosts": "3", "storage-apply-type": "parallel", "alarm-restrictions": "relaxed" }
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy -d @create_parallel.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy -d @create_parallel.txt
|
||||
|
||||
Show strategy
|
||||
-------------
|
||||
curl -i -X GET -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy
|
||||
curl -i -X GET -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy
|
||||
|
||||
Abort strategy
|
||||
--------------
|
||||
cat > abort.txt << EOF
|
||||
{"action": "abort"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy/actions -d @abort.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy/actions -d @abort.txt
|
||||
|
||||
Abort strategy stage
|
||||
--------------------
|
||||
cat > abort_stage.txt << EOF
|
||||
{"action": "abort-stage", "stage-id": "33"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy/actions -d @abort_stage.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy/actions -d @abort_stage.txt
|
||||
|
||||
Apply strategy
|
||||
--------------
|
||||
cat > apply.txt << EOF
|
||||
{"action": "apply-all"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy/actions -d @apply.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy/actions -d @apply.txt
|
||||
|
||||
Apply strategy stage
|
||||
--------------------
|
||||
cat > apply_stage.txt << EOF
|
||||
{"action": "apply-stage", "stage-id": "33"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy/actions -d @apply_stage.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy/actions -d @apply_stage.txt
|
||||
|
||||
Delete strategy
|
||||
---------------
|
||||
cat > delete.txt << EOF
|
||||
{}
|
||||
EOF
|
||||
curl -i -X DELETE -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/sw-upgrade/strategy -d @delete.txt
|
||||
curl -i -X DELETE -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/sw-upgrade/strategy -d @delete.txt
|
||||
|
||||
Firmware Update Orchestration
|
||||
=============================
|
||||
@ -156,44 +156,44 @@ cat > create_parallel.txt << EOF
|
||||
"alarm-restrictions": "relaxed"
|
||||
}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/fw-update/strategy -d @create_parallel.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/fw-update/strategy -d @create_parallel.txt
|
||||
|
||||
Show strategy
|
||||
-------------
|
||||
curl -i -X GET -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/fw-update/strategy
|
||||
curl -i -X GET -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/fw-update/strategy
|
||||
|
||||
Abort strategy
|
||||
--------------
|
||||
cat > abort.txt << EOF
|
||||
{"action": "abort"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/fw-update/strategy/actions -d @abort.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/fw-update/strategy/actions -d @abort.txt
|
||||
|
||||
Abort strategy stage
|
||||
--------------------
|
||||
cat > abort_stage.txt << EOF
|
||||
{"action": "abort-stage", "stage-id": "3"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/fw-update/strategy/actions -d @abort_stage.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/fw-update/strategy/actions -d @abort_stage.txt
|
||||
|
||||
Apply strategy
|
||||
--------------
|
||||
cat > apply.txt << EOF
|
||||
{"action": "apply-all"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/fw-update/strategy/actions -d @apply.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/fw-update/strategy/actions -d @apply.txt
|
||||
|
||||
Apply strategy stage
|
||||
--------------------
|
||||
cat > apply_stage.txt << EOF
|
||||
{"action": "apply-stage", "stage-id": "3"}
|
||||
EOF
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/fw-update/strategy/actions -d @apply_stage.txt
|
||||
curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/fw-update/strategy/actions -d @apply_stage.txt
|
||||
|
||||
Delete strategy
|
||||
---------------
|
||||
cat > delete.txt << EOF
|
||||
{}
|
||||
EOF
|
||||
curl -i -X DELETE -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.2:4545/api/orchestration/fw-update/strategy -d @delete.txt
|
||||
curl -i -X DELETE -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" -H "Content-Type: application/json" http://192.168.204.1:4545/api/orchestration/fw-update/strategy -d @delete.txt
|
||||
|
||||
|
@ -19,23 +19,23 @@ cat > live_migrate_request.txt
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
http://192.168.204.2:18774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://192.168.204.1:18774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @live_migrate_request.txt
|
||||
|
||||
# Via Nova-API Proxy
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
http://192.168.204.2:8774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://192.168.204.1:8774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @live_migrate_request.txt
|
||||
|
||||
# To VIM Directly
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://localhost:30003/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @live_migrate_request.txt
|
||||
|
||||
@ -50,23 +50,23 @@ cat > pause_request.txt
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
http://192.168.204.2:18774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://192.168.204.1:18774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @pause_request.txt
|
||||
|
||||
# Via Nova-API Proxy
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
http://192.168.204.2:8774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://192.168.204.1:8774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @pause_request.txt
|
||||
|
||||
# To VIM Directly
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://localhost:30003/v2/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @pause_request.txt
|
||||
|
||||
@ -82,23 +82,23 @@ cat > unpause_request.txt
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
http://192.168.204.2:18774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://192.168.204.1:18774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @unpause_request.txt
|
||||
|
||||
# Via Nova-API Proxy
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
http://192.168.204.2:8774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://192.168.204.1:8774/v2.1/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @unpause_request.txt
|
||||
|
||||
# To VIM Directly
|
||||
time curl -i -X POST -H "Accept: application/json" -H "X-Auth-Token: ${TOKEN_ID}" \
|
||||
-H "X-Region-Name: RegionOne" -H "X-Auth-Key: admin" -H "X-Auth-User: admin" \
|
||||
-H "User-Agent: python-heatclient" -H "Content-Type: application/json" \
|
||||
-H "X-Auth-Url: http://192.168.204.2:5000/v2.0/" \
|
||||
-H "X-Auth-Url: http://192.168.204.1:5000/v2.0/" \
|
||||
http://localhost:30003/v2/${TENANT_ID}/servers/${VM_ID}/action \
|
||||
-d @unpause_request.txt
|
||||
|
||||
|
@ -16,7 +16,7 @@ handlers=stdout
|
||||
username=admin
|
||||
tenant=admin
|
||||
authorization_protocol=http
|
||||
authorization_ip=192.168.204.2
|
||||
authorization_ip=192.168.204.1
|
||||
authorization_port=5000
|
||||
user_domain_name=Default
|
||||
project_domain_name=Default
|
||||
|
Loading…
Reference in New Issue
Block a user