-
Notifications
You must be signed in to change notification settings - Fork 0
Add switch connected-machines endpoint #93
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
base: main
Are you sure you want to change the base?
Conversation
| message SwitchNicWithMachine { | ||
| // Nic is the switch nic the machine is connected to. | ||
| SwitchNic nic = 1; | ||
| // Uuid of the machine. | ||
| string uuid = 2; | ||
| // Size of the machine. | ||
| string size = 3; | ||
| // AllocationHostname if machine is allocated. | ||
| string allocation_hostname = 4; | ||
| // VpnConnected indicated whether the machine is connected to a VPN. | ||
| bool vpn_connected = 5; | ||
| // FruProductSerial of the machine. | ||
| string fru_product_serial = 6; | ||
| // FruChassisPartSerial of the machine. | ||
| string fru_chassis_part_serial = 7; | ||
| // Liveliness of the machine. | ||
| metalstack.api.v2.MachineLiveliness liveliness = 8; | ||
| // State of the machine. | ||
| metalstack.api.v2.MachineState state = 9; | ||
| // FailedReclaim is true if the machine failed to return to the waiting machines pool after deletion. | ||
| bool failed_reclaim = 10; | ||
| // Crashloop is true if there was an unexpected event in the provisioning cycle. | ||
| bool crashloop = 11; | ||
| // LastErrorEventTime in case some error happened in the past. | ||
| google.protobuf.Timestamp last_error_event_time = 12; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am unsure, feels ugly, maybe we find another way to provide whats required, but does not randomly put data together which also require to fetch a lot of entities in the backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like it either. In the metal-api, the SwitchIPMIResponse contains Machine and IPMI, which would be BMC in this case. But the message would be huge while we only need a tiny subset of the fields. I don't have a good idea how to solve this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case we will have to fetch those entities, no matter what the message looks like.
|
Main must be pulled |
Description
None