Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Self-scheduling API] Public VLAN not assigned #568

Open
josecastillolema opened this issue Feb 3, 2025 · 1 comment
Open

[Self-scheduling API] Public VLAN not assigned #568

josecastillolema opened this issue Feb 3, 2025 · 1 comment

Comments

@josecastillolema
Copy link

Describe the bug
After creating a self scheduling assignment (step 6) and the corresponding schedule (step 7) following the Self scheduling manual QA document:

> curl -k -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"description": "Short description here", "owner": "tester", "qinq": 1, "vlan": "619", "wipe": "true"}' http://quads2-stage.rdu2.scalelab.redhat.com/api/v3/assignments/self
{
  "active": null,
  "ccuser": null,
  "cloud": {
    "id": 2,
    "last_redefined": "Tue, 26 Nov 2024 19:05:00 GMT",
    "name": "cloud02"
  },
  "cloud_id": 2,
  "created_at": null,
  "description": "Short description here",
  "id": null,
  "is_self_schedule": true,
  "notification": {
    "assignment_id": null,
    "fail": null,
    "five_days": null,
    "id": null,
    "initial": null,
    "one_day": null,
    "pre": null,
    "pre_initial": null,
    "seven_days": null,
    "success": null,
    "three_days": null
  },
  "ostype": "RHEL 8.6",
  "owner": "tester",
  "provisioned": null,
  "qinq": 1,
  "ticket": "4034",
  "validated": null,
  "vlan": {
    "gateway": "",
    "id": 1,
    "ip_free": 62,
    "ip_range": "",
    "netmask": "",
    "vlan_id": 619
  },
  "vlan_id": 1,
  "wipe": "true"
}
> curl -k -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"cloud":"cloud02", "hostname": "e22-h26-b01-fc640.stage.rdu2.scalelab.redhat.com"}' http://quads2-stage.rdu2.scalelab.redhat.com/api/v3/schedules
{"assignment":{"active":true,"ccuser":[],"cloud":{"id":2,"last_redefined":"Tue, 26 Nov 2024 19:05:00 GMT","name":"cloud02"},"cloud_id":2,"created_at":"Wed, 15 Jan 2025 11:00:22 GMT","description":"Short description here","id":51,"is_self_schedule":true,"notification":{"assignment_id":51,"fail":false,"five_days":false,"id":51,"initial":false,"one_day":false,"pre":false,"pre_initial":true,"seven_days":false,"success":false,"three_days":false},"ostype":null,"owner":"athiruma_tes","provisioned":true,"qinq":null,"ticket":null,"validated":false,"vlan_id":null,"wipe":false},"assignment_id":51,"build_end":null,"build_start":null,"created_at":"Sun, 02 Feb 2025 17:10:56 GMT","end":"Fri, 07 Feb 2025 17:10:56 GMT","host":{"blade":null,"broken":false,"build":true,"can_self_schedule":true,"cloud":{"id":1,"last_redefined":"Tue, 30 Apr 2024 12:07:05 GMT","name":"cloud01"},"cloud_id":1,"created_at":"Fri, 31 May 2024 13:27:16 GMT","default_cloud":{"id":1,"last_redefined":"Tue, 30 Apr 2024 12:07:05 GMT","name":"cloud01"},"default_cloud_id":1,"disks":[{"count":1,"disk_type":"sata","host_id":26,"id":12,"size_gb":480}],"host_type":"vendor","id":26,"interfaces":[{"bios_id":null,"host_id":26,"id":41,"mac_address":"","maintenance":false,"name":"em1","pxe_boot":false,"speed":10,"switch_ip":"10.1.34.204","switch_port":"xe-0/0/11:0","vendor":"Intel Corporation"},{"bios_id":null,"host_id":26,"id":42,"mac_address":"","maintenance":false,"name":"em2","pxe_boot":true,"speed":1,"switch_ip":"","switch_port":"et-0/0/27:2","vendor":"Intel Corporation"},{"bios_id":null,"host_id":26,"id":43,"mac_address":"","maintenance":false,"name":"em3","pxe_boot":false,"speed":1,"switch_ip":"","switch_port":"et-0/0/27:3","vendor":"Intel Corporation"}],"last_build":"Sun, 12 Jan 2025 09:35:00 GMT","model":"FC640","name":"e22-h26-b01-fc640.stage.rdu2.scalelab.redhat.com","rack":null,"retired":false,"switch_config_applied":true,"uloc":null,"validated":false},"host_id":26,"id":303,"start":"Sun, 02 Feb 2025 17:10:56 GMT"}

We would expect cloud02 to have assigned vlan ID 619.
Instead, the Public VLAN allocation page of the RDU Scale lab stage dynamic inventory shows the corresponding VLAN unassigned:

VLANID 	IPRange 	NetMask 	Gateway 	IPFree 	Owner 	Ticket 	Cloud
619 	10.1.63.128/26 	255.255.255.192 	10.1.63.190 	62 	nobody 		
620 	10.1.63.192/26 	255.255.255.192 	10.1.63.254 	62 	nobody 	
@grafuls
Copy link
Contributor

grafuls commented Feb 3, 2025

The issue here was with the assignment not being created due to bad data on the post request.
This has been resolved here: https://review.gerrithub.io/c/redhat-performance/quads/+/1208231

@sadsfae sadsfae added this to the 2.x Series - Bowie milestone Feb 4, 2025
@sadsfae sadsfae added the API label Feb 4, 2025
sadsfae pushed a commit that referenced this issue Feb 13, 2025
Assignment object not created as commit is reverted due to bad data on boolean
field.

closes: #568
closes: #567
Change-Id: I6d953fd2597ce64c980bd8a981648d78fd4d5ed6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

3 participants