Bug 1771519 - Unable to spawn a bootable openstack instance out of rhcos image
Summary: Unable to spawn a bootable openstack instance out of rhcos image
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RHCOS
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 4.3.0
Assignee: Micah Abbott
QA Contact: Michael Nguyen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-12 14:18 UTC by Tareq Alayan
Modified: 2019-12-05 16:28 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-05 16:28:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
not bootable (21.57 KB, image/png)
2019-11-12 14:18 UTC, Tareq Alayan
no flags Details

Description Tareq Alayan 2019-11-12 14:18:49 UTC
Created attachment 1635359 [details]
not bootable

Description of problem:
 Trying to install OCP4.3 4.3.0-0.nightly-2019-11-12-043446[1] and rhcos image rhcos-43.81.201911120038.0[2]



[1] https://openshift-release.svc.ci.openshift.org/releasestream/4.3.0-0.nightly/release/4.3.0-0.nightly-2019-11-12-043446

[2] https://releases-rhcos-art.cloud.privileged.psi.redhat.com/?stream=releases/rhcos-4.3&release=43.81.201911120038.0#43.81.201911120038.0

I also tried rhcos-43.81.201911081536.0 



How reproducible:
always

Steps to Reproduce:
1. upload rhcos image to our openstack instance
2. spawn vms to be used as master/bootsrap/worker machine 
3. vms are not bootable see attached image

Actual results:


Expected results:


Additional info:

Comment 1 Micah Abbott 2019-11-18 16:33:27 UTC
I was not able to reproduce this with `43.81.201911120038.0`

1.  Download the artifact - `curl -LO https://art-rhcos-ci.s3.amazonaws.com/releases/rhcos-4.3/43.81.201911120038.0/x86_64/rhcos-43.81.201911120038.0-openstack.x86_64.qcow2.gz`
2.  Uncompress the artifact - `gunzip rhcos-43.81.201911120038.0-openstack.x86_64.qcow2.gz`
3.  Upload to Glance (I did this via the web UI)

```
$ openstack image show rhcos-4.3-devel
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field            | Value                                                                                                                                                                                                                                                 |
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checksum         | 1225b3afe1dd26c4fdb5b5fd7f371615                                                                                                                                                                                                                      |
| container_format | bare                                                                                                                                                                                                                                                  |
| created_at       | 2019-11-15T18:32:08Z                                                                                                                                                                                                                                  |
| disk_format      | qcow2                                                                                                                                                                                                                                                 |
| file             | /v2/images/e0e30537-8153-45c9-a42a-d2def9b73eda/file                                                                                                                                                                                                  |
| id               | e0e30537-8153-45c9-a42a-d2def9b73eda                                                                                                                                                                                                                  |
| min_disk         | 0                                                                                                                                                                                                                                                     |
| min_ram          | 0                                                                                                                                                                                                                                                     |
| name             | rhcos-4.3-devel                                                                                                                                                                                                                                       |
| owner            | 8aa32be0972144a99ce5001d0f07905f                                                                                                                                                                                                                      |
| properties       | direct_url='rbd://03e3321d-071f-4b28-a3f9-0256f384bdca/images_d/e0e30537-8153-45c9-a42a-d2def9b73eda/snap', locations='[{u'url': u'rbd://03e3321d-071f-4b28-a3f9-0256f384bdca/images_d/e0e30537-8153-45c9-a42a-d2def9b73eda/snap', u'metadata': {}}]' |
| protected        | False                                                                                                                                                                                                                                                 |
| schema           | /v2/schemas/image                                                                                                                                                                                                                                     |
| size             | 2125922304                                                                                                                                                                                                                                            |
| status           | active                                                                                                                                                                                                                                                |
| tags             |                                                                                                                                                                                                                                                       |
| updated_at       | 2019-11-15T18:32:37Z                                                                                                                                                                                                                                  |
| virtual_size     | None                                                                                                                                                                                                                                                  |
| visibility       | private                                                                                                                                                                                                                                               |
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
```

4.  Create a server

```
$ openstack server create --image rhcos-4.3-devel --flavor m1.small --user-data /home/miabbott/Documents/ignition.json --network provider_net_cci_5 miabbott-rhcos
-4.3-devel                                           
+-----------------------------+------------------------------------------------------------------+        
| Field                       | Value                                                            |
+-----------------------------+------------------------------------------------------------------+
| OS-DCF:diskConfig           | MANUAL                                                           |
| OS-EXT-AZ:availability_zone |                                                                  |        
| 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                   | nn56UkVxtENL                                                     |
| config_drive                |                                                                  |
| created                     | 2019-11-18T16:26:02Z                                             |
| flavor                      | m1.small (b23c29c8-b888-4eff-b839-7a0d4e59fec0)                  |
| hostId                      |                                                                  |
| id                          | 4ffd778f-f631-4372-ab4f-023d340dd890                             |
| image                       | rhcos-4.3-devel (e0e30537-8153-45c9-a42a-d2def9b73eda)           |
| key_name                    | None                                                             |
| name                        | miabbott-rhcos-4.3-devel                                         |
| progress                    | 0                                                                |
| project_id                  | 8aa32be0972144a99ce5001d0f07905f                                 |
| properties                  |                                                                  |
| security_groups             | name='default'                                                   |
| status                      | BUILD                                                            |
| updated                     | 2019-11-18T16:26:02Z                                             |
| user_id                     | b8a82476b7b68a5e664a226d5462d982f4cacda2fb7de17d60b62787c1f0671b |
| volumes_attached            |                                                                  |
+-----------------------------+------------------------------------------------------------------+
```

5. Login

```
$ openstack server list | grep rhcos                   
| 4ffd778f-f631-4372-ab4f-023d340dd890 | miabbott-rhcos-4.3-devel   | ACTIVE    | provider_net_cci_5=10.0.151.127   | rhcos-4.3-devel                      | m1.small                |

$ sshq -l core 10.0.151.127                            
Warning: Permanently added '10.0.151.127' (ECDSA) to the list of known hosts.
Red Hat Enterprise Linux CoreOS 43.81.201911120038.0                                                      
  Part of OpenShift 4.3, RHCOS is a Kubernetes native operating system
  managed by the Machine Config Operator (`clusteroperator/machine-config`).
                                                     
WARNING: Direct SSH access to machines is not recommended; instead,
make configuration changes via `machineconfig` objects:
  https://docs.openshift.com/container-platform/4.3/architecture/architecture-rhcos.html
                                                                                                                                                                                                                     
---                                                                                                       
[core@host-10-0-151-127 ~]$ rpm-ostree status        
State: idle                                                                                               
AutomaticUpdates: disabled                           
Deployments:                                                                                              
● ostree://6ae0f75a56fe8a3ca521f118b0332edd39573da32f3cc4ae05209275d34cd0ed
                   Version: 43.81.201911120038.0 (2019-11-12T00:43:26Z)
[core@host-10-0-151-127 ~]$ exit                     
logout                                                                                                    
Connection to 10.0.151.127 closed.                   
```

We have seen issues reported where the users did not uncompress the artifact after downloading it.  Could you try to repeat this test and make sure the artifact is uncompressed before uploading to Glance?

Comment 3 Micah Abbott 2019-12-05 13:59:35 UTC
@Tareq have you had a chance to retest installing to OpenStack?

Comment 4 Tareq Alayan 2019-12-05 16:26:53 UTC
@Michah yes i am able to use the rhcos and install on  openstack.

Comment 5 Micah Abbott 2019-12-05 16:28:24 UTC
Closing as WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.