-
Notifications
You must be signed in to change notification settings - Fork 8
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
'ad:traffic_in' and 'ad:traffic_out' json dicts are changed/rubyfied #78
Comments
Cloudkeeper < 2.x sends all the attributes of an appliance as a map String -> String. It doesn't take into consideration that some values might have additional structure. This won't happen with Cloudkeeper > 2.x since it's not sending all the attributes like before. Is this something worth fixing in 1.x branch? |
but still the attributes will be available to the backend, no?
Really depends on the timeline of the cloukeeper-os I believe. For the time being we are adding a fix at the cloud-info-provider so not really urgent |
No, not all of them. But if some attribute is needed on the backend I can extend the proto definition and add it. Just let me know what you need. |
Is it possible to know what is not planned to be made available? What is the reason behind it, potential security-related problem? |
These are the attributes available for appliance:
and these two from image list section:
The reason was restrictions on image tags in OpenNebula (character restrictions) and AWS (length resctriction). In order to use Cloudkeeper on all cloud platforms in the same way this is the compromise we had to make. |
I would expect the restrictions to be handled by the backends and keep the core as flexible as possible. |
I figured that having a protocol with only clearly specified values is better then pushing all values from image list as a non-transparent map. The protocol can be easily extended (with backward compatibility) if some values are missing. But if you insist on pushing all the values it can be brought back. Anyway, that's a different issue. Can I close this issue as #wontfix? |
Hello,
Following some debugging for EGI-Federation/cloud-info-provider#149 it seems that information about
ad:traffic_our
andad:traffin_in
image attributes is rubyfied.In https://vmcaster.appdb.egi.eu/store/vappliance/scipion.v1.0/image.list it's expressed as a JSON dict:
And once it went through cloudkeeper and cloudkeeper-os it's recorded like this in OpenStack, as a string of a somewhat rubyfied hash (with weird
:
before the keys):Looking at https://github.com/the-cloudkeeper-project/cloudkeeper-os/blob/master/cloudkeeper_os/utils.py#L90 it seems that it more something that may be done by
cloudkeeper
itself.Could you please have a look?
The text was updated successfully, but these errors were encountered: