*** jasonsb has joined #murano | 00:54 | |
*** sergmelikyan has joined #murano | 01:12 | |
*** sergmeli_ has joined #murano | 01:16 | |
*** sergmelikyan has quit IRC | 01:17 | |
*** sergmelikyan has joined #murano | 01:21 | |
*** sergmelikyan has quit IRC | 01:23 | |
*** sergmeli_ has quit IRC | 01:24 | |
*** zhurong has joined #murano | 01:45 | |
*** Liuqing has joined #murano | 03:39 | |
*** yamamoto has joined #murano | 03:55 | |
*** wasmum has quit IRC | 04:36 | |
*** wasmum has joined #murano | 04:42 | |
*** zhurong has quit IRC | 05:37 | |
*** Liuqing has quit IRC | 05:37 | |
*** enthurohini has joined #murano | 05:39 | |
*** Liuqing has joined #murano | 05:49 | |
*** vahidh has joined #murano | 06:09 | |
*** gangadhar has joined #murano | 06:32 | |
*** vahidh has quit IRC | 06:34 | |
*** klkumar has joined #murano | 06:36 | |
gangadhar | Why I'm unable to do this: "If: $.enableHostname" ? enableHostname is an boolean type. | 06:43 |
---|---|---|
*** zhurong has joined #murano | 06:55 | |
*** openstackstatus has joined #murano | 07:04 | |
*** ChanServ sets mode: +v openstackstatus | 07:04 | |
*** openstackgerrit has joined #murano | 07:10 | |
*** enthurohini has quit IRC | 07:39 | |
*** enthurohini has joined #murano | 07:39 | |
katyafervent | gangadhar, hi | 07:58 |
katyafervent | Cause it is not Python :) You can't do that kind of expressions in many other languages | 07:59 |
*** kodokuu has joined #murano | 08:45 | |
*** klkumar has quit IRC | 08:46 | |
kodokuu | hi slagun | 08:48 |
*** enthurohini has quit IRC | 08:49 | |
*** AndroUser has joined #murano | 08:49 | |
openstackgerrit | Merged openstack/murano-deployment: Remove redundant source parameter in zuul.layout https://review.openstack.org/256390 | 08:50 |
*** tlashchova has joined #murano | 08:50 | |
gangadhar | katyafervent: Then How can I check whether it is true or fasle? | 08:50 |
gangadhar | I tried with "== true" and "== True" also. But didn't work. | 08:52 |
katyafervent | gangadhar, actually I'm wrong and true/false can be omitted | 08:52 |
katyafervent | What error do you have? | 08:52 |
ddovbii_ | gangadhar, use one '=' symbol | 08:53 |
katyafervent | is enableHostname accessible at all? | 08:53 |
gangadhar | yes, enableHostname is accessible | 08:53 |
ddovbii_ | "If: $.enableHostname = True" | 08:53 |
gangadhar | ddovbbi: okay, let me try | 08:54 |
ddovbii_ | but "If: $.enableHostname" also must work. strange | 08:55 |
ddovbii_ | https://github.com/openstack/murano-apps/blob/master/ApacheHTTPServer/package/Classes/ApacheHttpServer.yaml#L59 | 08:55 |
*** samuelBartel has joined #murano | 08:55 | |
kodokuu | If I want to disable flavor with a root disk size greater than 20GB, I need to use policy or I can add a conf in my murano package ? | 08:56 |
kodokuu | Because I want this rule apply just on this package | 08:57 |
katyafervent | kodokuu, for the flavor field there is a requirement parameter in UI.yaml | 08:57 |
katyafervent | and it filters flavors on the flavor selection list | 08:57 |
ddovbii_ | kodokuu, https://murano.readthedocs.org/en/latest/draft/appdev-guide/murano_packages.html#forms | 08:57 |
katyafervent | ddovbii_, thanks | 08:58 |
katyafervent | kodokuu, see requirements description | 08:58 |
katyafervent | so you can add min_disk: 20 only | 08:58 |
*** kodokuu_ has joined #murano | 08:59 | |
kodokuu_ | ok thx both ;) | 08:59 |
*** klkumar has joined #murano | 09:00 | |
kodokuu_ | arf just mini | 09:00 |
kodokuu_ | can't add a max_disk | 09:00 |
kodokuu_ | Because I have flavor for windows and for linux, Linux have 14GB and Windows 20 | 09:00 |
gangadhar | ddovbbi: it's returning false always. | 09:01 |
*** kodokuu has quit IRC | 09:01 | |
katyafervent | kodokuu_, I think you can add bug with a wishlist priority | 09:02 |
kodokuu_ | okay | 09:02 |
ddovbii_ | gangadhar, could you please show your code of workflow ? | 09:03 |
kodokuu_ | Katy I'll try to modify https://github.com/openstack/murano-dashboard/blob/master/muranodashboard/dynamic_ui/fields.py#L311 | 09:05 |
gangadhar | ddovbbi: http://paste.openstack.org/show/481782/ | 09:07 |
kodokuu_ | and https://github.com/openstack/murano-dashboard/blob/master/muranodashboard/catalog/tabs.py#L68 | 09:07 |
ddovbii_ | gangadhar, sorry, I was wrong. try "If: $.enableHostname = true" | 09:14 |
ddovbii_ | gangadhar, but I believe "If: $.enableHostname" should work. We use this construction everywhere | 09:18 |
kodokuu_ | Katyafervent ddovbii I can use filter for flavor just on min cpu, ram or disk ? | 09:18 |
kodokuu_ | Can't filter on name ? | 09:18 |
ddovbii_ | kodokuu_, unfortunately no ( | 09:19 |
kodokuu_ | and If I modify fields in dashboard, I can filter my flavor ? | 09:20 |
kodokuu_ | You think it's possible ? | 09:20 |
kodokuu_ | With add max_disk | 09:20 |
gangadhar | ddovbbi: Tried with true. But still it is going to False block only. Not sure why? I set default property to false. Does it the reason for this behaviour? | 09:21 |
ddovbii_ | kodokuu_, why not?=) I believe you can add this filter | 09:22 |
katyafervent | gangadhar, yes, that is the reason | 09:23 |
katyafervent | gangadhar, also check your object model .enableHostname appearance | 09:24 |
openstackgerrit | Merged openstack/murano: Add release note for fip on multiple networks fix https://review.openstack.org/255937 | 09:24 |
ddovbii_ | gangadhar, please show your code of your ui? are you passing value to this property correctly ? | 09:24 |
katyafervent | you can find it in murano-engine log after works: 'Starting processing task' | 09:24 |
ddovbii_ | *of ui | 09:24 |
katyafervent | kodokuu_, that is a correct place to add max_disk | 09:25 |
gangadhar | ddovbbi: http://paste.openstack.org/show/481783/ is ui.yaml | 09:26 |
katyafervent | kodokuu_, but anyway - it's better to create a bug and add this functions available for others. | 09:26 |
kodokuu_ | Katyafervent I want to modify for me, and if works, I share with all with a bug and patch creation ;) | 09:27 |
kodokuu_ | If I can't succes to modify, I'll create bug | 09:27 |
katyafervent | ok) and if you will, please add reno notes yo your commit (release notes manager) | 09:27 |
kodokuu_ | hard to commit for me, I have hard proxy and doesn't have requierement for commit. so just copy my patch in bug ;) | 09:28 |
openstackgerrit | Merged openstack/murano-dashboard: Add i18n trans tag for strings in template file https://review.openstack.org/256291 | 09:29 |
ddovbii_ | gangadhar, you included enableHostname: $.testConfiguration.enableHostname to the list of instance properties, not to application properties | 09:31 |
*** kodokuu_ has quit IRC | 09:33 | |
gangadhar | Oh, Sorry for bothering you guys :( | 09:33 |
ddovbii_ | gangadhar, here is a correct code : http://paste.openstack.org/show/481787/ | 09:34 |
ddovbii_ | gangadhar, np :) | 09:34 |
openstackgerrit | Olga Gusarenko proposed openstack/murano: [AppDev Guide] MuranoPL Core library https://review.openstack.org/256481 | 09:38 |
*** vgridnev has joined #murano | 09:38 | |
openstackgerrit | Dmytro Dovbii proposed openstack/murano: [Murano Docs] Fix links on client docs page https://review.openstack.org/257244 | 09:43 |
*** kodokuu has joined #murano | 09:44 | |
kodokuu | katyafervent ddovbii ok my patch works | 09:47 |
kodokuu | I create bug | 09:47 |
openstackgerrit | Merged openstack/murano: [mocking-machinery] Add inject YAQL functions https://review.openstack.org/252990 | 09:48 |
ddovbii_ | kodokuu, great! | 09:48 |
*** zhurong has quit IRC | 09:55 | |
*** vgridnev has quit IRC | 09:55 | |
*** vgridnev has joined #murano | 09:56 | |
*** Liuqing has quit IRC | 09:57 | |
kodokuu | https://bugs.launchpad.net/murano/+bug/1525844 | 10:03 |
openstack | Launchpad bug 1525844 in Murano "[Dashboard] Add new requirements for flavor" [Undecided,New] | 10:03 |
katyafervent | kodokuu, thank you! | 10:06 |
*** kodokuu has quit IRC | 10:18 | |
*** klkumar has quit IRC | 10:19 | |
*** AndroUser is now known as kodokuuproxy | 10:21 | |
*** kodokuu has joined #murano | 10:22 | |
kodokuu | now need to add cinder class ;) | 10:26 |
kodokuu | I don't know if slagun works on this week end | 10:26 |
slagun | kodokuu: hi | 10:28 |
kodokuu | hey | 10:28 |
kodokuu | slagun kodokuuproxy is my phone (backup if my proxy bug ;p) | 10:29 |
slagun | kodokuu: I almost finished cinder implementation. It still has some issues and I haven't tested it yet and it only for Liberty/Mitaka | 10:30 |
slagun | kodokuu: https://review.openstack.org/#/c/257099/ | 10:30 |
kodokuu | yes, good works | 10:30 |
slagun | kodokuu: going to finish it today | 10:30 |
kodokuu | Hum liberty/mitaka >< | 10:30 |
kodokuu | No possible to manual commit in kilo ? Because you change just class ressource | 10:31 |
slagun | we don't add new features to lod version, just fix bugs. But it can be adopted to Kilo with slight changes. Also it is Classes/resources/ not Resources/. It is MuranoPL code | 10:33 |
slagun | *old versions* | 10:33 |
slagun | so let me finish it first and then we'll see how it can be applied to your config | 10:34 |
kodokuu | okay ;) | 10:34 |
*** samuelBartel has quit IRC | 10:38 | |
*** gangadhar has quit IRC | 10:50 | |
*** kodokuu has quit IRC | 10:56 | |
*** ddovbii_ has quit IRC | 10:59 | |
*** enthurohini has joined #murano | 10:59 | |
openstackgerrit | Ekaterina Chernova proposed openstack/murano-dashboard: Add miximum disk, vcpu and memory requirement https://review.openstack.org/257281 | 11:21 |
*** vgridnev has quit IRC | 11:49 | |
*** raildo-afk is now known as raildo | 12:10 | |
*** kodokuu has joined #murano | 12:16 | |
*** vgridnev has joined #murano | 12:34 | |
openstackgerrit | Ekaterina Chernova proposed openstack/murano: [mocking-machinery] Add original method function https://review.openstack.org/257322 | 12:36 |
*** vgridnev_ has joined #murano | 12:39 | |
*** vgridnev has quit IRC | 12:39 | |
*** ducttape_ has joined #murano | 12:44 | |
openstackgerrit | Kirill Zaitsev proposed openstack/python-muranoclient: Use oslo_i18n instend of gettextutils https://review.openstack.org/243914 | 12:46 |
*** vgridnev_ has quit IRC | 12:50 | |
kodokuu | Possible de make murano package which deploy multi instance ? | 12:52 |
kodokuu | like a postgre cluster | 12:53 |
*** vgridnev_ has joined #murano | 12:54 | |
*** ducttape_ has quit IRC | 13:00 | |
openstackgerrit | Stan Lagun proposed openstack/murano-specs: Support for OpenStack regions https://review.openstack.org/257098 | 13:05 |
*** vgridnev_ has quit IRC | 13:05 | |
*** vgridnev has joined #murano | 13:05 | |
*** sergmelikyan has joined #murano | 13:11 | |
kodokuu | slagun re | 13:15 |
kodokuu | Do you remember this part of your code : $myScriptTemplate: $resources.string('script.sh') | 13:15 |
kodokuu | For transform my script to string to put in userdata | 13:16 |
kodokuu | with this commit https://github.com/openstack/murano/commit/1c1144692ca89ed49a5df2cbac258fe4ed167d77 | 13:16 |
kodokuu | We remove contract string for use str_remplace | 13:16 |
kodokuu | but with $resources.string , If I use str_replace in my script.sh, murano convert all in string, so my function doesn't works | 13:17 |
*** ddovbii has joined #murano | 13:17 | |
kodokuu | ressouces.string add ".." around the user-data | 13:19 |
kodokuu | so I need a function of ressources for get text in RAW format, without "..." | 13:19 |
kodokuu | Any solution ? | 13:19 |
openstackgerrit | Stan Lagun proposed openstack/murano-specs: Action authentication and visibility https://review.openstack.org/251870 | 13:20 |
ddovbii | kodokuu, what do you think about creating custom Instance class? | 13:21 |
ddovbii | recently, I did the same for my application | 13:22 |
ddovbii | https://github.com/openstack/murano-apps/blob/master/PivotalOperationsManager/package/Classes/OpsManagerInstance.yaml | 13:22 |
*** kodokuu_ has joined #murano | 13:23 | |
kodokuu_ | ddovbii I use a custom class for my app | 13:23 |
*** kodokuu has quit IRC | 13:24 | |
kodokuu_ | And a custom class for my intance | 13:24 |
kodokuu_ | ddovbii I see your package | 13:29 |
kodokuu_ | you write your userdata with $data: $initScript.replace($scriptReplacements) | 13:29 |
kodokuu_ | and your userdata is init.sh | 13:30 |
kodokuu_ | My user-data is str_replace: template: | <some script> params: param1: value1 ... | 13:31 |
kodokuu_ | So murano transform my init.sh in string and all script is put in user-data because murano add "..." around my script | 13:31 |
slagun | kodokuu_: resiurces.string() doesn't add '..'. See https://github.com/openstack/murano/blob/master/murano/engine/system/resource_manager.py#L49 | 13:32 |
kodokuu_ | slagun If I go in heat and show template I can see ===> user_data: "str_replace:\r\n template: |\r\n #!/bin/bash\r\n touch /root/$var1\r\ \n params:\r\n $var1: {get_attr: [instance10, first_address]}" | 13:33 |
kodokuu_ | instance10 is a variable modify by murano so good | 13:34 |
slagun | kodokuu_: please share your code. It is hard to understand from such quotes in IRC | 13:35 |
kodokuu_ | ok ;) | 13:35 |
kodokuu_ | https://drive.google.com/file/d/0B1CSqGpCRd_2NTZtY1o1MjdTY2c/view?usp=sharing | 13:36 |
slagun | I don't see str_replace in your code | 13:38 |
slagun | aaaa | 13:38 |
slagun | no I doesn't work like this | 13:38 |
slagun | it | 13:38 |
slagun | shat you put inti script.sh is not a shell script. | 13:39 |
kodokuu_ | okay | 13:39 |
slagun | Heat expects a dictionary etc. And you just put a string content of the file instead | 13:39 |
kodokuu_ | I guess I need to concat str_replace with my script.sh ? | 13:40 |
slagun | YHou either do string replacements using yaql function as it was in my example and leave pure shell script in the file or rename this file to have yaml extension and load it with yaml() function rather than string() | 13:41 |
slagun | I suggest to give yaql a try | 13:41 |
kodokuu_ | Hum | 13:41 |
kodokuu_ | I think is not work for me | 13:42 |
kodokuu_ | Because I need str_replace | 13:42 |
kodokuu_ | I need to put IP of my instance in user_data | 13:42 |
kodokuu_ | And I have that after heat launch template | 13:42 |
slagun | str_replace does exactly the same. It makes the replacements before putting the value | 13:43 |
kodokuu_ | yes | 13:43 |
kodokuu_ | So I change script.sh by script.yaml, and replace resource.string by a yaml function ? | 13:43 |
slagun | $resources.yaml() | 13:44 |
kodokuu_ | okay | 13:44 |
kodokuu_ | I'll try it | 13:44 |
kodokuu_ | thx | 13:44 |
slagun | can you explain why do you believe that .replace() will not work for you? | 13:44 |
kodokuu_ | replace works with murano right ? So I can replace a param with a value (custom by UI, or write in class). But I need to replace with a value which exist in heat (e.g IP of my instance) | 13:45 |
kodokuu_ | So replace must be a heat function, not a murano function | 13:46 |
slagun | but you do have database name in murano | 13:46 |
kodokuu_ | And I only know str_replace | 13:46 |
kodokuu_ | Yes I need database name, AND ip of isntance | 13:47 |
kodokuu_ | because The goal is a cluster database | 13:47 |
slagun | $fileContent.replace('%%DATABASE_NAME%%', $.databaseName) | 13:47 |
kodokuu_ | I need both | 13:47 |
slagun | $fileContent.replace('%%DATABASE_NAME%%', $.instance.ipAddresses[0]) | 13:47 |
kodokuu_ | I need my instance know database name, and IP of other instance (not implemented now) | 13:47 |
kodokuu_ | hooo | 13:48 |
kodokuu_ | murano know $.instance.ipAddresses[0] before heat call ? | 13:48 |
slagun | a, I see. You will not get an IP address in Murano until you deploy the instance. And it is too late to set user data at this point | 13:48 |
kodokuu_ | yep | 13:49 |
kodokuu_ | I can't use $.instance.ipAddresses[0] before instance.deploy() | 13:49 |
slagun | this is another thing we need to think about. There should be a Murano way to solve this | 13:51 |
*** sergmelikyan has quit IRC | 13:51 | |
kodokuu_ | Hum it's heat which generate instance, so it's not possible to murano know ip or id of instance before deploy no ? | 13:52 |
slagun | Murano doesn't know the IP in advance. However in theory there could be a way to write the replacement so that Murano will generate str_replace for you | 13:54 |
slagun | Or at least that you won't depend on the name of resource Murano generates for OS::Nova::Server | 13:55 |
kodokuu_ | yep | 13:56 |
kodokuu_ | you can write a blueprint :D | 13:57 |
*** gangadhar has joined #murano | 13:57 | |
kodokuu_ | I search on app catalog, I never see a package with multi instance | 13:58 |
kodokuu_ | like a DB cluster | 13:58 |
*** kzaitsev_mb has joined #murano | 13:59 | |
openstackgerrit | Merged openstack/python-muranoclient: Use oslo_i18n instend of gettextutils https://review.openstack.org/243914 | 14:01 |
*** sergmelikyan has joined #murano | 14:01 | |
slagun | it is kinda sad that we don't have an example in murano-apps | 14:02 |
kodokuu_ | slagun Can I use replace function on resource.yaml type ? | 14:02 |
slagun | KubernetesCluster has many nodes | 14:02 |
kodokuu_ | Yes I can't find it | 14:02 |
kodokuu_ | github link is down | 14:02 |
slagun | https://github.com/openstack/murano-apps/tree/master/Docker/Kubernetes/KubernetesCluster/package | 14:02 |
slagun | but it may be hard to understand | 14:03 |
slagun | kodokuu_: you can use bind() function for that | 14:03 |
openstackgerrit | Ekaterina Chernova proposed openstack/murano-dashboard: Add miximum disk, vcpu and memory requirement https://review.openstack.org/257281 | 14:03 |
kodokuu_ | I'm not afraid ;) | 14:03 |
kodokuu_ | ok because replace make me a trace ^^ | 14:03 |
slagun | replace is a text replacement | 14:03 |
kodokuu_ | in yaml resource not work ? | 14:04 |
slagun | yaml() loads a data structure (dicts, lists etc) | 14:04 |
slagun | it deserializes yaml | 14:04 |
slagun | and string() returns a string | 14:04 |
kodokuu_ | ok, do you have example with bind function ? | 14:04 |
slagun | each application has it | 14:05 |
slagun | https://github.com/openstack/murano-apps/blob/master/ApacheHTTPServer/package/Classes/ApacheHttpServer.yaml#L55 | 14:05 |
slagun | https://github.com/openstack/murano-apps/blob/master/ApacheHTTPServer/package/Resources/DeployApache.template#L18 | 14:05 |
kodokuu_ | ok :) | 14:05 |
slagun | it replaces $something in the template with the value | 14:05 |
gangadhar | In MuranoPL, how can I dynamically create/add/update/delete values in a dict? | 14:05 |
slagun | gangadhar: $dict[key]: value | 14:06 |
kodokuu_ | And for cluster, one App class and multi class for each instance | 14:06 |
slagun | kodokuu_: there is no problem to have list of instances instead of single instance | 14:07 |
slagun | brb in 30 minutes | 14:07 |
openstackgerrit | Ekaterina Chernova proposed openstack/murano: Fix test class property access in mocks https://review.openstack.org/257365 | 14:08 |
*** zimboboyd has quit IRC | 14:09 | |
*** zhurong has joined #murano | 14:13 | |
*** yamamoto has quit IRC | 14:26 | |
kodokuu_ | Very strange, I can't anymore upload package with horizon O_o | 14:29 |
kodokuu_ | upload is infinite and I can see "POST /v1/catalog/packages HTTP/1.1" 400 690 0.040722 in log | 14:29 |
slagun | kodokuu_: try to log out and log in again | 14:30 |
kodokuu_ | My horizon is down | 14:31 |
kodokuu_ | loul | 14:31 |
kodokuu_ | ok, all my user cry now | 14:34 |
kodokuu_ | I don't know why, but upload new package in murano make crash horizon | 14:34 |
sergmelikyan | Crash like process crash O.o | 14:34 |
kodokuu_ | ok after all reboot, package upload make crash horizon ;) | 14:39 |
kodokuu_ | WARNING:muranoclient.common.utils:Image specification invalid: No Hash key in image | 14:40 |
*** samuelBartel has joined #murano | 14:40 | |
*** zhurong has quit IRC | 14:40 | |
kodokuu_ | slagun I have error with this line : $script: $myScriptTemplate.bind(dict($var1 => {get_attr: [$.databaseName, first_address]})) | 14:45 |
kodokuu_ | need quote ? | 14:45 |
slagun | kodokuu_: not like this | 14:46 |
slagun | in your yaml there will be $var1: $databaseName. And then you say $template.bind(dict(databaseName => $.databaseName)) | 14:48 |
slagun | ':' is not valid for yaql expression | 14:48 |
slagun | it is dict(key => value) in kilo | 14:49 |
kodokuu_ | in my yaml it's $var1: {get_attr: [$databaseName, first_address]} | 14:50 |
kodokuu_ | I want to replace $databaseName by $.databaseName | 14:50 |
kodokuu_ | so if my value have ":" I can't | 14:52 |
*** ducttape_ has joined #murano | 14:55 | |
slagun | bind works like this: it walks trough the entire file (all dict keys/values, lists etc) and replaces string values that start with $ with binded values | 14:55 |
slagun | and then returns new data structure | 14:55 |
slagun | I don't understand what {get_attr: [$databaseName, first_address]} should do | 14:56 |
kodokuu_ | ok So I need to create a string, "{get_attr: [" + $.databaseName + ", first_address]}" my script.yaml have $var1: $databaseName | 14:56 |
kodokuu_ | And my bind is $databaseName =>"my concat string" | 14:56 |
kodokuu_ | it's heat function for have IP adresse of instance named with $databaseName | 14:58 |
slagun | bind() doesn't do replacements *within* strings. It replaces dictionary values as a whole | 14:58 |
slagun | I I'd understand what you trying to achieve I could possibly help you | 14:58 |
slagun | If * | 14:58 |
kodokuu_ | ok I try to explain | 14:59 |
kodokuu_ | My goal is to have a DB cluster. Now, I try to write a user-data with IP of instance. So I use str_replace for send IP through user-data. For that, I need to use "get_attr" with instance NAME | 15:01 |
kodokuu_ | so murano must write user-data with name of instance | 15:01 |
kodokuu_ | in this case, databasename is the name of my intance | 15:01 |
*** sergmelikyan has quit IRC | 15:02 | |
kodokuu_ | So I need to use yaml for preserve my str_replace in user-data | 15:02 |
kodokuu_ | or you know what, I force name of instance in murano | 15:03 |
kodokuu_ | and I write this name in my script | 15:03 |
*** gangadhar has quit IRC | 15:03 | |
kodokuu_ | I think is the easy solution | 15:03 |
kodokuu_ | ;) | 15:03 |
kodokuu_ | it's* | 15:03 |
kodokuu_ | I'll bb 1h | 15:03 |
kodokuu_ | ;) | 15:03 |
slagun | it was confusing because it was databaseName, not instanceName | 15:04 |
slagun | then leave your yaml as it is and bind $template.bind(dict(instanceName => $.instance.name)) | 15:05 |
slagun | it should be $var1: {get_attr: [$instanceName, first_address]} in the yaml | 15:06 |
slagun | without quote marks | 15:06 |
*** sergmelikyan has joined #murano | 15:08 | |
*** yamamoto has joined #murano | 15:15 | |
*** lin_yang_ has joined #murano | 15:18 | |
*** zimboboyd has joined #murano | 15:18 | |
*** sergmelikyan has quit IRC | 15:19 | |
*** sergmelikyan has joined #murano | 15:27 | |
*** sergmelikyan has quit IRC | 15:28 | |
*** sergmelikyan has joined #murano | 15:32 | |
*** lin_yang_ has quit IRC | 15:33 | |
*** lin_yang_ has joined #murano | 15:33 | |
*** lin_yang_ has quit IRC | 15:34 | |
*** lin_yang_ has joined #murano | 15:34 | |
*** lin_yang_ has left #murano | 15:35 | |
*** gangadhar has joined #murano | 15:54 | |
*** vgridnev has quit IRC | 15:54 | |
*** yamamoto has quit IRC | 15:56 | |
*** kodokuu_ has quit IRC | 15:57 | |
*** yamamoto has joined #murano | 15:58 | |
gangadhar | slagun: How to delete a key from dict? And What if I want to delete the dict variable? | 15:59 |
slagun | gangadhar: what version of Murano? | 16:01 |
*** gpaz has joined #murano | 16:01 | |
gangadhar | stable-liberty | 16:01 |
slagun | $dict.delete(key1, key2, keyn) - returns new dictionary (source dict with those keys deleted) | 16:03 |
slagun | $dict: $dict.delete(key) | 16:03 |
slagun | Don't understand what is "delete dict variable" | 16:03 |
gangadhar | I want to remove $dict? | 16:04 |
slagun | from where? | 16:04 |
openstackgerrit | Ekaterina Chernova proposed openstack/murano-dashboard: Add miximum disk, vcpu and memory requirement https://review.openstack.org/257281 | 16:06 |
gangadhar | I created a dict like this: $dict[key] : valu. Now I don't want $dict variable. | 16:07 |
gangadhar | I mean deleting a variable. (like del variable in python) | 16:08 |
*** kodokuu has joined #murano | 16:08 | |
slagun | $dict is a local variable. It doesn't get saved anywhere. If you don't need it just don't use it. del variable in Python frees memory - something you very rarely need, especially for local variables. And there is no such thing in MuranoPL/yaql. Memory will be freed automatically once you exit the function | 16:09 |
kodokuu | slagun re | 16:11 |
slagun | looks like I'm just not getting something :) | 16:11 |
kodokuu | I test your solution but I have trace | 16:11 |
kodokuu | http://paste.openstack.org/show/481821/ | 16:11 |
slagun | kodokuu: can you share the package with recent changes? | 16:12 |
kodokuu | it's same like the old execept : - $script: $myScriptTemplate.bind(dict(instanceName => $.instance.name)) | 16:12 |
kodokuu | and $var1: {get_attr: [$instanceName, first_address]} | 16:12 |
kodokuu | in yaml | 16:12 |
slagun | oh | 16:14 |
slagun | bind replaces anything that starts with '$' | 16:14 |
kodokuu | humm | 16:15 |
slagun | and it couldn't find a value for $var | 16:15 |
kodokuu | yep, my first idea is replace all {get_attr: [$instanceName, first_address]} | 16:15 |
kodokuu | but not possible ^^ | 16:15 |
slagun | since it is just a macro you could rename it to %var or something like that | 16:15 |
kodokuu | I don't know if it's possible with str_replace | 16:16 |
kodokuu | I try | 16:16 |
slagun | not with str_replace | 16:16 |
kodokuu | so I can't make %var1: {get_attr: [$instanceName, first_address]} | 16:16 |
slagun | yes | 16:16 |
slagun | and touch /root/%var1 in the script | 16:16 |
kodokuu | so no possible :/ | 16:16 |
kodokuu | ha | 16:16 |
kodokuu | ok | 16:17 |
kodokuu | I try | 16:17 |
kodokuu | slagun http://paste.openstack.org/show/481823/ | 16:19 |
slagun | are you sire that $resources variable is not null? | 16:21 |
slagun | sure | 16:21 |
kodokuu | - $resources: new(sys:Resources) | 16:21 |
kodokuu | - $myScriptTemplate: $resources.yaml('script.yaml') | 16:21 |
kodokuu | - $script: $myScriptTemplate.bind(dict(instanceName => $.instance.name)) | 16:21 |
slagun | can you upload this package again for me? | 16:23 |
slagun | Don't see any error in your paste here | 16:23 |
slagun | maybe there is something more there | 16:23 |
kodokuu | ok | 16:25 |
kodokuu | slagun https://drive.google.com/file/d/0B1CSqGpCRd_2QlY5clVtTFYyUWM/view?usp=sharing | 16:26 |
*** sergmelikyan has quit IRC | 16:27 | |
slagun | kodokuu: try to put %var1 in script.yaml last line in quote marks. It might be a YAML issue. %var1: -> "%var1": | 16:29 |
*** sergmelikyan has joined #murano | 16:30 | |
kodokuu | ok | 16:31 |
kodokuu | new trace | 16:33 |
kodokuu | instance10 is the name of my instance | 16:33 |
kodokuu | http://paste.openstack.org/show/481828/ | 16:33 |
kodokuu | and I have trace in heat | 16:34 |
slagun | there are circular dependencies in generated Heat template. It's not clear why | 16:35 |
slagun | you should analyze Heat template. You can take it from murano engine log by grepping "Pushing" string | 16:35 |
kodokuu | http://paste.openstack.org/show/481830/ | 16:36 |
kodokuu | 'user_data': {u'str_replace': {u'params': {u'%var1': {u'get_attr': [u'instance10', u'first_address']}}, u'template': u'#!/bin/bash\ntouch /root/%var1\n'}}, | 16:37 |
kodokuu | so I guess it's work | 16:37 |
slagun | I guess you're trying to do something that is not possible in Heat - pass an IP address of the instance as part of instance user data. I guess it creates circular dependency as the user data is evaluated before the deployment | 16:40 |
slagun | and it is not related to Murano this time | 16:41 |
kodokuu | ha yes | 16:41 |
kodokuu | I'am stupid | 16:41 |
slagun | I guess you can obtain instance IP from the script | 16:41 |
kodokuu | I use that when I have 2 instances | 16:41 |
kodokuu | with a depends_on | 16:42 |
kodokuu | But now I'am sur it's works because with the pushing I see the good template | 16:42 |
slagun | :) | 16:42 |
kodokuu | ok now I add second instance and volume and I turn murano in prod :) | 16:42 |
kodokuu | slagun It's beautiful name: generateHostname($.appConfiguration.unitNamingPattern, $index + 1) | 16:46 |
kodokuu | $index + 1 :) | 16:46 |
*** klkumar has joined #murano | 16:51 | |
slagun | generatesHostname substitures '#' with sequence numbers. $index+1 is a starting number | 16:52 |
kodokuu | I can use ....ion.unitNamingPattern, 1) for first instance and ....ion.unitNamingPattern, $index + 1) for second ? | 16:55 |
kodokuu | if I choice instancename second instance have instancename1 ? | 16:56 |
slagun | you can enter "instanceName#" and always call it as (.., $index+1) and get "instanceName1", "instanceName2". When there is a repeating block in Application section it has $index variable on each iteration. Or you can just put a constant value in the parameter | 16:58 |
*** yamamoto has quit IRC | 16:59 | |
kodokuu | it's possible to add a depends_on with murano ? | 17:01 |
kodokuu | option in Nova::OS::Server | 17:01 |
slagun | everything is possible :) | 17:03 |
kodokuu | haha ;) | 17:03 |
slagun | but you don't need depends_on if you're going to reference attribute of one instance from user data of another | 17:03 |
slagun | Heat will build the dependency for you | 17:04 |
kodokuu | ok I try without ;) | 17:04 |
slagun | also you can deploy one instance, construct user data for the second instance (using yaql .replace()) and deploy second instance | 17:04 |
slagun | typically Murano issues a series of stack updates rather than trying to built the whole template at once | 17:05 |
slagun | so by the time you deploy second instance you can already have an IP of the first | 17:06 |
kodokuu | slagun you can call instance.deploy in one class ? or you can create multi class with deploy call ? | 17:10 |
slagun | didn't get the question | 17:12 |
slagun | sorry | 17:12 |
slagun | what is multi class? | 17:12 |
kodokuu | yes i'am confuse with multi intance | 17:12 |
kodokuu | but I see docker example | 17:12 |
kodokuu | I understand now | 17:12 |
*** kzaitsev_mb has quit IRC | 17:13 | |
*** sergmelikyan has quit IRC | 17:16 | |
kodokuu | slagun again CircularDependencyException Circular Dependency | 17:18 |
kodokuu | first instance is ok | 17:18 |
kodokuu | I think I use the wrong method | 17:18 |
kodokuu | privclass http://paste.openstack.org/show/481835/ | 17:19 |
*** kzaitsev_mb has joined #murano | 17:19 | |
slagun | I "like" your class names :) | 17:20 |
*** openstackstatus has quit IRC | 17:20 | |
kodokuu | yes | 17:20 |
*** openstackstatus has joined #murano | 17:21 | |
*** ChanServ sets mode: +v openstackstatus | 17:21 | |
slagun | constructUserData puts a name of the first instance | 17:21 |
slagun | and then you assign this user data back to the first instance | 17:21 |
kodokuu | To motivate you to finish ;) | 17:21 |
slagun | thus the circular dependency | 17:21 |
*** vahidh has joined #murano | 17:22 | |
kodokuu | ho yes | 17:22 |
kodokuu | => $.instance2.name)) | 17:22 |
kodokuu | :D | 17:22 |
*** ducttape_ has quit IRC | 17:24 | |
*** gangadhar has quit IRC | 17:24 | |
kodokuu | need a button for update package | 17:25 |
kodokuu | always delete env, delete package, upload package, create env | 17:25 |
*** samuelBartel has quit IRC | 17:25 | |
kzaitsev_mb | kodokuu: you can upload/update via a CLI with 1 command ;) | 17:25 |
kzaitsev_mb | murano package-update --exists-actipn=u ./path/to/packge | 17:26 |
kodokuu | ha good to know | 17:26 |
kzaitsev_mb | *--exists-action=u | 17:26 |
kodokuu | but I use horizon | 17:26 |
kodokuu | I code on my local compute, on windows | 17:27 |
kodokuu | so for upload with ssh .... I prefer horizon ;) | 17:27 |
slagun | kodokuu: you can update the package in one series on 50 mouse clicks :) | 17:27 |
slagun | of 50 | 17:27 |
kzaitsev_mb | well if the app has been successfully deployed — you probably need to delete the env and the app, but if it was a deploy failure — I guess you'll only need to delete/upload the package ) | 17:28 |
kodokuu | ha | 17:28 |
kodokuu | good | 17:28 |
kzaitsev_mb | also we have quick envs | 17:28 |
kodokuu | need to delete package from env ? | 17:28 |
*** yamamoto has joined #murano | 17:28 | |
kzaitsev_mb | I think not | 17:28 |
*** klkumar has quit IRC | 17:28 | |
kzaitsev_mb | well if it was a deploy-failure. the package is searched for by filtering by name/version | 17:29 |
kzaitsev_mb | it kind of depends | 17:29 |
kzaitsev_mb | your variant is the safest, but you can take shortcuts here and there =) | 17:30 |
kodokuu | slagun you know what | 17:33 |
kodokuu | ll /root/ ==> -rw-r--r-- 1 root root 0 Dec 14 18:32 10.121.210.152 | 17:33 |
kodokuu | Eureka :) | 17:33 |
kzaitsev_mb | btw, I've started to learn French just recently, so seeing your comments in your classes makes me smile =) | 17:33 |
kodokuu | :D | 17:34 |
kodokuu | I'm rebel | 17:34 |
kodokuu | My boss kick me "Comments in english" | 17:34 |
kodokuu | But I'm french >< | 17:34 |
kodokuu | so good evening friends and slagun thx for all ;) | 17:36 |
kodokuu | I'm exited for volume; ) | 17:37 |
kodokuu | byebye | 17:37 |
*** kodokuu has left #murano | 17:37 | |
*** sergmelikyan has joined #murano | 17:39 | |
*** idvoretskyi has joined #murano | 17:42 | |
*** yamamoto has quit IRC | 17:46 | |
*** kodokuuproxy has quit IRC | 17:47 | |
*** klkumar has joined #murano | 17:47 | |
*** sergmelikyan has quit IRC | 17:59 | |
*** enthurohini has quit IRC | 18:01 | |
*** sergmelikyan has joined #murano | 18:06 | |
*** klkumar has quit IRC | 18:08 | |
*** kzaitsev_mb has quit IRC | 18:28 | |
*** vgridnev has joined #murano | 18:31 | |
openstackgerrit | Tetiana Lashchova proposed openstack/murano: [Murano Docs] Extend Contract section https://review.openstack.org/257535 | 19:02 |
*** idvoretskyi has quit IRC | 19:50 | |
*** raildo is now known as raildo-afk | 20:15 | |
*** sergmelikyan has quit IRC | 20:30 | |
*** kzaitsev_mb has joined #murano | 20:34 | |
*** ducttape_ has joined #murano | 20:38 | |
*** kzaitsev_mb has quit IRC | 21:34 | |
*** kzaitsev_mb has joined #murano | 21:36 | |
*** ducttape_ has quit IRC | 21:39 | |
*** kzaitsev_mb has quit IRC | 21:42 | |
*** sergmelikyan has joined #murano | 21:52 | |
*** sergmelikyan has quit IRC | 21:53 | |
*** jasonsb has quit IRC | 22:16 | |
*** slagun has quit IRC | 22:27 | |
*** ducttape_ has joined #murano | 22:27 | |
*** slagun has joined #murano | 22:29 | |
*** vgridnev has quit IRC | 22:38 | |
*** sergmelikyan has joined #murano | 22:43 | |
*** jasonsb has joined #murano | 22:45 | |
*** ducttape_ has quit IRC | 22:49 | |
*** kzaitsev_mb has joined #murano | 23:03 | |
*** sergmelikyan has quit IRC | 23:06 | |
*** sergmelikyan has joined #murano | 23:07 | |
*** kzaitsev_mb has quit IRC | 23:13 | |
*** jasonsb has quit IRC | 23:22 | |
*** ducttape_ has joined #murano | 23:26 | |
*** ducttape_ has quit IRC | 23:30 | |
*** sergmelikyan has quit IRC | 23:34 | |
*** jasonsb has joined #murano | 23:34 | |
*** sergmelikyan has joined #murano | 23:36 | |
*** jasonsb has quit IRC | 23:39 | |
*** jasonsb has joined #murano | 23:41 | |
*** sergmelikyan has quit IRC | 23:42 | |
*** sergmelikyan has joined #murano | 23:43 | |
*** sergmelikyan has quit IRC | 23:50 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!