Closed Iqqdd99 closed 2 weeks ago
A similar situation exists regarding applications, the GUI does not provide meaningful feedback based on the actual state of the applications.
I suggest:
Remove the list of node candidates from the main resources page, as it is showing candidates from all cloud providers registered in proactive. Since a single proactive instance is shared among all the organizations/users using the GUI, this will show node candidates unrelated to the user/organization (https://github.com/eu-nebulous/gui/issues/27)
Move the "Eye" button inside the cloud resource edit form. This button has to issue a addCloud request to SAL, wait for the response of "/sal/cloud/async" endpoint to be False (or timeout to 2 minutes) and then issue a getNodeCanidates request to SAL with the following payload:
[
{"type":"NodeTypeRequirement","nodeTypes":["IAAS"],"jobIdForByon":"","jobIdForEDGE":""},
{"type":"AttributeRequirement","requirementClass":"cloud","requirementAttribute":"id","requirementOperator":"EQ","value":"ID_OF_THE_CLOUD_RESOURCE"},
{"type":"AttributeRequirement","requirementClass":"location","requirementAttribute":"name","requirementOperator":"IN","value":"SELECTED_REGIONS"},
{"type":"AttributeRequirement","requirementClass":"hardware","requirementAttribute":"name","requirementOperator":"IN","value":"INCLUDED_INSTANCE_TYPES"}
]
Where:
The results of this request have to be shown in tabular form
When cloud providers are added to the platform they are just added to the Resources section but there is no feedback to show that they have been added correctly or if there are any errors.