Skip to content
Snippets Groups Projects
Commit 9b7b3527 authored by aticig's avatar aticig
Browse files

Renaming one script and removing log files


Signed-off-by: aticig's avatarGulsum Atici <gulsum.atici@canonical.com>
parent 566c497b
No related branches found
No related tags found
1 merge request!223Setup scripts for Charmed OSM Hackfest 15
Pipeline #11112 failed with stage
in 1 minute and 24 seconds
......@@ -20,7 +20,7 @@ FOCAL: Image to install VMs
This script creates the VMs in required project
```
./run-create-openstack-vm.sh
./run-create-openstack-vms.sh
```
......@@ -48,7 +48,7 @@ Add VIM and ks8cluster to OSM instance
## Full Flow
```
./run-create-openstack-user-and-project.sh
./run-create-openstack-vms.sh
./run-vm-initial-setup.sh
./run-install-osm.sh
./run-osm-vim-k8scluster-add.sh
......
......@@ -23,7 +23,7 @@ echo "Waiting for OSM VM to be ready"
IP=`openstack server list --name $VM_NAME --column Networks -f yaml | head -3 | tail -1 | grep -o '[0-9]\+[.][0-9]\+[.][0-9]\+[.][0-9]\+'`
while [ 1 ] ; do
sleep 10
ALIVE=$(ssh -T -o ConnectTimeout=1 -o StrictHostKeyChecking=no -i hackfest_rsa ubuntu@${IP} "cloud-init status --wait" | tail -1 2> /dev/null)
ALIVE=$(ssh -T -o ConnectTimeout=5 -o StrictHostKeyChecking=no -i hackfest_rsa ubuntu@${IP} "cloud-init status --wait" | tail -1 2> /dev/null)
echo $ALIVE
if [ "${ALIVE}" == "status: done" ] ; then break ; fi
done
......
./create-openstack-vm.sh started at Çrş 07 Haz 2023 11:35:59 +03
Creating public port
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------------------+------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+------------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | |
| binding_profile | |
| binding_vif_details | |
| binding_vif_type | unbound |
| binding_vnic_type | normal |
| created_at | 2023-06-07T08:36:02Z |
| data_plane_status | None |
| description | |
| device_id | |
| device_owner | |
| device_profile | None |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address='172.21.248.95', subnet_id='d14f68b7-8287-41fe-b533-dafb2240680a' |
| id | 3015e793-2ec3-4427-b070-07a3d52d7196 |
| ip_allocation | None |
| mac_address | fa:16:3e:ea:1e:8e |
| name | charmedosm-5 |
| network_id | 21ea5d92-24f1-40ab-8d28-83230e277a49 |
| numa_affinity_policy | None |
| port_security_enabled | False |
| project_id | f3ba6235ec7b4e9fbe6002992d60a207 |
| propagate_uplink_status | None |
| qos_network_policy_id | None |
| qos_policy_id | None |
| resource_request | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| tenant_id | f3ba6235ec7b4e9fbe6002992d60a207 |
| trunk_details | None |
| updated_at | 2023-06-07T08:36:02Z |
+-------------------------+------------------------------------------------------------------------------+
Creating Keypair
+-------------+-------------------------------------------------+
| Field | Value |
+-------------+-------------------------------------------------+
| created_at | None |
| fingerprint | fe:af:ae:27:b9:9d:73:6e:a2:00:c8:10:03:21:89:fe |
| id | hackfest |
| is_deleted | None |
| name | hackfest |
| type | ssh |
| user_id | 5fcfab909583499e8af7ed632709dc2e |
+-------------+-------------------------------------------------+
Launching OSM VM
The option [tenant_id] has been deprecated. Please avoid using it.
More than one Port exists with the name 'charmedosm-5'.
Waiting for OSM VM to be ready
./create-openstack-vm.sh started at Çrş 07 Haz 2023 11:40:01 +03
Creating public port
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------------------+-------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+-------------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | |
| binding_profile | |
| binding_vif_details | |
| binding_vif_type | unbound |
| binding_vnic_type | normal |
| created_at | 2023-06-07T08:40:04Z |
| data_plane_status | None |
| description | |
| device_id | |
| device_owner | |
| device_profile | None |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address='172.21.249.248', subnet_id='d14f68b7-8287-41fe-b533-dafb2240680a' |
| id | dea3d03e-5876-43b3-b27c-340d05706508 |
| ip_allocation | None |
| mac_address | fa:16:3e:ef:31:40 |
| name | charmedosm-5 |
| network_id | 21ea5d92-24f1-40ab-8d28-83230e277a49 |
| numa_affinity_policy | None |
| port_security_enabled | False |
| project_id | f3ba6235ec7b4e9fbe6002992d60a207 |
| propagate_uplink_status | None |
| qos_network_policy_id | None |
| qos_policy_id | None |
| resource_request | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| tenant_id | f3ba6235ec7b4e9fbe6002992d60a207 |
| trunk_details | None |
| updated_at | 2023-06-07T08:40:04Z |
+-------------------------+-------------------------------------------------------------------------------+
Creating Keypair
ConflictException: 409: Client Error for url: http://172.21.247.1:8774/v2.1/os-keypairs, Key pair 'hackfest' already exists.
Launching OSM VM
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------------------------------+----------------------------------------------------+
| Field | Value |
+-------------------------------------+----------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | |
| OS-EXT-SRV-ATTR:host | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| OS-EXT-SRV-ATTR:instance_name | |
| OS-EXT-STS:power_state | NOSTATE |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | None |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| adminPass | 955KMZsruLpb |
| config_drive | |
| created | 2023-06-07T08:40:12Z |
| flavor | osm.sanity (7d3c99d5-b597-4228-88e0-f67a81be6a64) |
| hostId | |
| id | 0992ad21-03e7-4401-b19d-25932d81e4a4 |
| image | ubuntu20.04 (d3cd2290-5813-4f77-90f8-7a1e8c21d9c6) |
| key_name | hackfest |
| name | charmedosm-5 |
| progress | 0 |
| project_id | f3ba6235ec7b4e9fbe6002992d60a207 |
| properties | |
| security_groups | name='default' |
| status | BUILD |
| updated | 2023-06-07T08:40:12Z |
| user_id | 5fcfab909583499e8af7ed632709dc2e |
| volumes_attached | |
+-------------------------------------+----------------------------------------------------+
Waiting for OSM VM to be ready
This diff is collapsed.
This diff is collapsed.
......@@ -3,10 +3,10 @@ echo $0 started at $(date)
. ./common-vars
#./run-create-openstack-vm.sh $@
#./run-vm-initial-setup.sh $@
#sleep 15
#./run-install-osm.sh $@
./run-create-openstack-vms.sh $@
./run-vm-initial-setup.sh $@
sleep 15
./run-install-osm.sh $@
wait
./run-osm-vim-k8scluster-add.sh $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment