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

Network segments do not show up in Horizon #241

Open
samiemostafavi opened this issue Oct 26, 2022 · 4 comments
Open

Network segments do not show up in Horizon #241

samiemostafavi opened this issue Oct 26, 2022 · 4 comments

Comments

@samiemostafavi
Copy link

samiemostafavi commented Oct 26, 2022

Hi,

I add network segments as reservable items in Blazar by running the following commands:

$ openstack reservation network create --network-type "vlan" --physical-network "physnet1" --segment "252"
$ openstack reservation network list
+------------------+--------------------------------------+------------+--------------+
| physical_network | id                                   | segment_id | network_type |
+------------------+--------------------------------------+------------+--------------+
| physnet1         | 1b876a9e-4b39-4e66-aa91-a32807100943 |        252 | vlan         |
+-------------------------------------------------------------------------------------+

Now if I go to Horizon and open project/leases/calendar/network/ it does not show any network. Can you help me what is exactly wrong here?

I can make a lease on the network without any problem through CLI:

openstack reservation lease create --reservation resource_type=network,network_name=network-name,resource_properties='["==","$segment_id","252"]' --start-date "2022-10-25 18:43" --end-date "2022-10-26 18:43" my-new-lease

And it will show up in project/leases/ of Horizon.

Update:
I realized that the browser even receives the correct json:

{"resources": [{"network_type": "vlan", "physical_network": "physnet1", "segment_id": 252}], "reservations": [], "project_id": "ae84b9a3c7be419da3eb42ff5abde165"}

It seems that it is Horizon that is not showing the data.

Best,
Samie

@msherman64
Copy link
Contributor

@Mark-Powers any ideas?

@Mark-Powers
Copy link
Contributor

This is a known bug in our network availability calendar. You should be be able to create leases using the GUI and use the CLI as normal, as you mention however. We are hoping to have time to fix this later in November or December.

@samiemostafavi
Copy link
Author

Hi,

I fixed the issue and there is a commit for it in our forked blazar-dashboard repo. I can create a PR here if you think it is fine.

There were 2 issues:

  1. No chooser attribute was defined for the network calendar
  2. The segment_ids were integer but were shown as a string

Here is the commit:
KTH-EXPECA/blazar-dashboard@c2f6572

Best,
Samie

@Mark-Powers
Copy link
Contributor

Thank you @samiemostafavi for the help!

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

No branches or pull requests

3 participants