These are chat archives for cloudsoft/brooklyn-tosca

30th
Oct 2015
Andrea Turli
@andreaturli
Oct 30 2015 06:33
Great @ahgittin
Re 'Compute' and 'JcloudsLocation' I see your confusion as I have the same. E.g. I mapped 'a_server' spec to jclouds template and sothe policy needs to specify just the target location, so I think it is something in the middle of your 2 interpretations. Makes sense?
Alex Heneveld
@ahgittin
Oct 30 2015 13:16
@andreaturli i think yours is the same as my 1st interpretation
a_server becomes a single JcloudsLocation instance aka MachineProvisioningLocation which basically is the same as a spec for a VM
the reason that is confusing to me is that the tosca manifest basically says script_hello requires to be hosted_on the a_server compute node, as does CassandraNode. in english that would suggest it is the same server instance.
consider if i have 2 war files, which are hosted_on the JBoss6Server: would this also result in 2 different jboss instances, each on a different instance following the a_server spec.
feels like we want to have hosted_on_instance and hosted_on_cloud (or hosted_on_machine_with_spec which would be the same thing) to clarify this
Alex Heneveld
@ahgittin
Oct 30 2015 13:22
although as a quick win simply changing a_server to be a_cloud makes the semantics feel much nicer (even though we haven’t changed anything fundamental, it’s just superficial)
but on reflection i think we want to define those two specific relations (e.g. o.a.b.tosca.hosted_on_{instance,cloud} as subtypes of hosted_on)
Andrea Turli
@andreaturli
Oct 30 2015 13:54
@ahgittin now I see your point. I like the idea of having a more specific relations (hosted_on_{instance, cloud}) as subtypes of hosted_on
a_server vs a_cloud feels much similar to what we have in CAMP but semantically it is still weird that a_cloud has 4 gb mem_size :)
Alex Heneveld
@ahgittin
Oct 30 2015 17:21
yer right there. how do you square the circle? :)
Andrea Turli
@andreaturli
Oct 30 2015 19:09
I mean, isn't strange that TOSCA is not modelling the cloud concept?
Alex Heneveld
@ahgittin
Oct 30 2015 23:12
indeed!