Skip to content

fix: Fix tests and external ip deletion - #142

Merged
pacospace merged 3 commits into
mainfrom
fix-delete-ip
Aug 3, 2026
Merged

fix: Fix tests and external ip deletion#142
pacospace merged 3 commits into
mainfrom
fix-delete-ip

Conversation

@pacospace

Copy link
Copy Markdown
Member

Fixes: #139

@pacospace

Copy link
Copy Markdown
Member Author

All tests green and https://github.com/ewcloud/ewccli/actions/runs/30619779005 green @slothkong :)

@slothkong

slothkong commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Hello @pacospace ,

I have tested manually and can confirm the fix achieves what is needed.

BEFORE TEARDOWN

ewc hub deploy ssh-bastion-flavour --server-name joro-ssh-bastion-flavour --extra-volume 30 --external-ip
[08/03/26 09:53:51] INFO     Using `default` profile.                                                                                                                               
[08/03/26 09:53:51] INFO     SSH private and public keys are matching!

...

🚀 Deployment Complete
Item: ssh-bastion-flavour-1.9.0 has been successfully deployed.

🔐 VM Login Info
You can log in to the VM using:

ssh -i /home/ubuntu/.ewccli/.ssh/eumetsat-ecis-r1-internal-ewc-coreservices_id_rsa cloud-user@199.195.57.0

openstack server volume list joro-ssh-bastion-flavour
+----------+---------------------------------+---------------------------------+------+------------------------+---------------------------------+---------------------------------+
| Device   | Server ID                       | Volume ID                       | Tag  | Delete On Termination? | Attachment ID                   | BlockDeviceMapping UUID         |
+----------+---------------------------------+---------------------------------+------+------------------------+---------------------------------+---------------------------------+
| /dev/vda | 70c1a062-1c21-45ba-a611-        | 2b71fbab-9590-4729-9bfb-        | None | True                   | 72b2e159-3d5a-45b9-adfd-        | 394293a8-54cd-4c9c-9281-        |
|          | d3c2afcc0e1e                    | 30ac57c312ab                    |      |                        | bfc75260d590                    | aa75a6104505                    |
| /dev/vdb | 70c1a062-1c21-45ba-a611-        | 9ca45397-70fb-47e0-ade4-        | None | False                  | edd6c7ce-1d48-475c-b05f-        | 61d4d20e-d008-4a7e-9cf4-        |
|          | d3c2afcc0e1e                    | 388b5a726fbd                    |      |                        | 3434d2e56981                    | d198f8f5c06b                    |
+----------+---------------------------------+---------------------------------+------+------------------------+---------------------------------+---------------------------------+

openstack server show joro-ssh-bastion-flavour
+-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| Field                               | Value                                                                                                                                      |
+-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                                                                                                                                     |
| OS-EXT-AZ:availability_zone         | nova                                                                                                                                       |
| OS-EXT-SRV-ATTR:host                | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:hostname            | joro-ssh-bastion-flavour                                                                                                                   |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:instance_name       | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:kernel_id           | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:launch_index        | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:ramdisk_id          | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:reservation_id      | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:root_device_name    | None                                                                                                                                       |
| OS-EXT-SRV-ATTR:user_data           | None                                                                                                                                       |
| OS-EXT-STS:power_state              | Running                                                                                                                                    |
| OS-EXT-STS:task_state               | None                                                                                                                                       |
| OS-EXT-STS:vm_state                 | active                                                                                                                                     |
| OS-SRV-USG:launched_at              | 2026-08-03T09:55:11.000000                                                                                                                 |
| OS-SRV-USG:terminated_at            | None                                                                                                                                       |
| accessIPv4                          |                                                                                                                                            |
| accessIPv6                          |                                                                                                                                            |
| addresses                           | private=10.0.0.194, 199.195.57.0                                                                                                           |
| config_drive                        |                                                                                                                                            |
| created                             | 2026-08-03T09:53:57Z                                                                                                                       |
| description                         | None                                                                                                                                       |
| flavor                              | description=, disk='0', ephemeral='0', extra_specs.aggregate_instance_extra_specs:requires_amd_epyc='true',                                |
|                                     | extra_specs.hw:mem_page_size='small', extra_specs.hw:numa_nodes='1', id='4cpu-4gbmem', is_disabled=, is_public='True', location=,          |
|                                     | name='4cpu-4gbmem', original_name='4cpu-4gbmem', ram='4096', rxtx_factor=, swap='0', vcpus='4'                                             |
| hostId                              | efe7725b99e254e0c824b214dba7bb4b8a89cc51213eac7a66c69dfc                                                                                   |
| host_status                         | None                                                                                                                                       |
| id                                  | 70c1a062-1c21-45ba-a611-d3c2afcc0e1e                                                                                                       |
| image                               | Rocky-9.7-20260519081947 (0fb18eab-3ae3-4744-95d5-f1248dc89f2d)                                                                            |
| key_name                            | ubuntu-ewccli-keypair                                                                                                                      |
| locked                              | False                                                                                                                                      |
| locked_reason                       | None                                                                                                                                       |
| name                                | joro-ssh-bastion-flavour                                                                                                                   |
| pinned_availability_zone            | None                                                                                                                                       |
| progress                            | 0                                                                                                                                          |
| project_id                          | 8f899e40de7441d7b70b2d844561de6f                                                                                                           |
| properties                          | deployed='ewccli'                                                                                                                          |
| scheduler_hints                     |                                                                                                                                            |
| security_groups                     | name='ssh'                                                                                                                                 |
| server_groups                       | None                                                                                                                                       |
| status                              | ACTIVE                                                                                                                                     |
| tags                                |                                                                                                                                            |
| trusted_image_certificates          | None                                                                                                                                       |
| updated                             | 2026-08-03T09:55:12Z                                                                                                                       |
| user_id                             | 3dedfb14cf2d42d2a5dd51ce9917c804                                                                                                           |
| volumes_attached                    | delete_on_termination='True', id='2b71fbab-9590-4729-9bfb-30ac57c312ab'                                                                    |
|                                     | delete_on_termination='False', id='9ca45397-70fb-47e0-ade4-388b5a726fbd'                                                                   |
+-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+

AFTER TEARDOWN

openstack volume show 9ca45397-70fb-47e0-ade4-388b5a726fbd
No Volume found for 9ca45397-70fb-47e0-ade4-388b5a726fbd

openstack volume show 2b71fbab-9590-4729-9bfb-30ac57c312ab
No Volume found for 2b71fbab-9590-4729-9bfb-30ac57c312ab

openstack floating ip list | grep 199.195.57.0

(No output as the IP isn't in the list any longer)

We can proceed with the merging~

@slothkong

Copy link
Copy Markdown
Contributor

Regarding the newly failing E2E tests (i.e. run 30800208263), the error seems related to the parsing done by the CI of the catalog defaults. This is not a blocker for this fix branch, will be addressed separately.

@pacospace
pacospace merged commit 560f769 into main Aug 3, 2026
3 of 7 checks passed
@pacospace
pacospace deleted the fix-delete-ip branch August 3, 2026 10:19
ewc-semantic-releases Bot pushed a commit that referenced this pull request Aug 3, 2026
# [0.7.0](0.6.0...0.7.0) (2026-08-03)

### Bug Fixes

* ECMWF region names ([#141](#141)) ([5358cf6](5358cf6))
* Fix tests and external ip deletion ([#142](#142)) ([560f769](560f769))
* GPU flavour and GPU image mismatch ([#136](#136)) ([1f3d4af](1f3d4af))
* Release External IP when VM is deleted ([#138](#138)) ([24a3513](24a3513))

### Features

* Expose message output after ewc infra delete command ([#135](#135)) ([2922164](2922164))
* Include links into help command ([#145](#145)) ([4f70a34](4f70a34))
* Introduce extra volume flag for servers ([#97](#97)) ([7331661](7331661))
* Show also keypair in ewc infra list command ([#134](#134)) ([d6d9173](d6d9173))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Retry is required for deletion of instance with FIP and extra volume

3 participants