openstackgerrit | hardik proposed openstack/python-muranoclient: Pass environment variables of proxy to tox https://review.openstack.org/256150 | 00:05 |
---|---|---|
*** kzaitsev_mb has quit IRC | 00:14 | |
*** jasonsb has quit IRC | 00:16 | |
openstackgerrit | Dmytro Dovbii proposed openstack/murano: [Murano Docs] Describe app migrating to L https://review.openstack.org/256162 | 00:32 |
*** thumpba has joined #murano | 00:45 | |
*** kzaitsev_mb has joined #murano | 01:15 | |
*** kzaitsev_mb has quit IRC | 01:31 | |
*** jasonsb has joined #murano | 01:44 | |
*** x00350071 is now known as xiangxinyong | 01:48 | |
*** xiangxinyong is now known as x00350071 | 01:48 | |
*** zhurong has joined #murano | 01:54 | |
*** kzaitsev_mb has joined #murano | 01:57 | |
*** zhurong has quit IRC | 02:07 | |
*** zhurong has joined #murano | 02:07 | |
*** kzaitsev_mb has quit IRC | 02:34 | |
*** klkumar has joined #murano | 02:59 | |
*** kzaitsev_mb has joined #murano | 03:00 | |
*** x00350071 is now known as xiangxinyong | 03:34 | |
*** kzaitsev_mb has quit IRC | 03:40 | |
*** yamamoto has joined #murano | 03:55 | |
*** kzaitsev_mb has joined #murano | 04:06 | |
*** Nikolay_St has quit IRC | 04:19 | |
*** ducttape_ has joined #murano | 04:36 | |
*** ducttape_ has quit IRC | 04:41 | |
*** kzaitsev_mb has quit IRC | 04:48 | |
*** kzaitsev_mb has joined #murano | 05:15 | |
*** vgridnev has joined #murano | 06:25 | |
*** ashishb has joined #murano | 06:28 | |
*** xiangxinyong has quit IRC | 06:48 | |
*** Nikolay_St has joined #murano | 06:51 | |
*** jesuspg has joined #murano | 06:59 | |
*** vahidh_ has joined #murano | 07:17 | |
*** vgridnev has quit IRC | 07:17 | |
*** enthurohini has joined #murano | 07:17 | |
*** vahidh has quit IRC | 07:18 | |
*** enthurohini has quit IRC | 07:19 | |
*** kzaitsev_mb has quit IRC | 07:30 | |
*** jesuspg has quit IRC | 07:31 | |
*** jesuspg has joined #murano | 07:31 | |
*** vgridnev has joined #murano | 07:34 | |
*** klkumar has quit IRC | 07:46 | |
*** klkumar has joined #murano | 07:54 | |
*** vahidh_ has quit IRC | 08:00 | |
*** vahidh has joined #murano | 08:06 | |
*** kzaitsev_mb has joined #murano | 08:26 | |
*** kzaitsev_mb has quit IRC | 08:30 | |
*** vgridnev has quit IRC | 08:38 | |
*** yamamoto has quit IRC | 08:47 | |
*** yamamoto has joined #murano | 08:49 | |
openstackgerrit | stoneliu proposed openstack/murano-dashboard: Add i18n trans tag for strings in template file https://review.openstack.org/256291 | 09:03 |
*** zhurong has quit IRC | 09:24 | |
*** kzaitsev_mb has joined #murano | 09:26 | |
*** kzaitsev_mb has quit IRC | 09:31 | |
*** kodokuu has joined #murano | 09:39 | |
kodokuu | Hi, this is possible to use allowed_value with murano (in heat template) ???? | 09:39 |
*** vgridnev has joined #murano | 09:45 | |
*** vgridnev has quit IRC | 09:45 | |
*** akulshin has joined #murano | 09:45 | |
*** vgridnev has joined #murano | 09:46 | |
katyafervent | hi kodokuu | 09:50 |
*** yamamoto has quit IRC | 09:51 | |
katyafervent | I'm not sure what it is but you can pass parameters to heat template directly | 09:51 |
katyafervent | but you can deploy heat-based application and set in the heat template all params that you are needed in | 09:51 |
kodokuu | katyafervent Hi Katya, when I use a HOT file with allowed value, murano not use this params and I have just default value in UI murano | 09:53 |
kodokuu | you can find my template here ==> https://launchpadlibrarian.net/229610797/template.txt | 09:54 |
kodokuu | But murano for flavor_id display just default value but not other value | 09:55 |
katyafervent | oh, I see what is allowed_values now | 10:02 |
katyafervent | so Murano UI ignores this while rendering the web form | 10:02 |
kodokuu | yep | 10:03 |
*** kzaitsev_mb has joined #murano | 10:03 | |
kodokuu | this is question or an affirmation ? :p | 10:03 |
katyafervent | So it looks like a bug | 10:04 |
kodokuu | okay | 10:04 |
kodokuu | I use stable/kilo | 10:04 |
kodokuu | maybe works with liberty ? | 10:04 |
katyafervent | Do you know if is it a new feature in heat templates? | 10:05 |
kodokuu | new features I don't know but I use that since juno | 10:05 |
kodokuu | heat_template_version: 2014-10-16 | 10:05 |
katyafervent | probably not, since we didn't have opportunity to browse user input to the choice field | 10:06 |
katyafervent | so looks like interested feature requirest | 10:06 |
katyafervent | can you create a bug for that please? | 10:06 |
kodokuu | I can but I see this bug https://bugs.launchpad.net/murano/+bug/1498253 | 10:07 |
openstack | Launchpad bug 1498253 in Murano "Error when adding a hot package with constrained parameter to an environment" [Medium,Confirmed] - Assigned to Dmytro Dovbii (ddovbii) | 10:07 |
kodokuu | This user can't import package if allowed_values is on HOT file. But works for me. | 10:07 |
kodokuu | just UI ignore it | 10:07 |
kodokuu | And If I try to change a paramater with a values which is not in my constraint, murano reject me. So it's good. | 10:09 |
katyafervent | this bug is about CLI :) | 10:10 |
katyafervent | oh not | 10:11 |
katyafervent | how did you compose your package? | 10:11 |
kodokuu | manual compose | 10:11 |
kodokuu | manifeste, template, logo | 10:12 |
*** kzaitsev_mb has quit IRC | 10:12 | |
katyafervent | kodokuu, ok, we will investigate it in that bug | 10:13 |
kodokuu | so no need new blueprint ? | 10:14 |
katyafervent | and you also have different versions though | 10:14 |
katyafervent | not right now, thanks | 10:14 |
kodokuu | ok | 10:14 |
kodokuu | So I try to migrate my HOT file to a muranoPL package | 10:14 |
kodokuu | but hard to write a muranoPL package >< | 10:14 |
katyafervent | I will keep an eye on that bug) | 10:14 |
katyafervent | kodokuu, we have the examples and app developer guide :) | 10:15 |
kodokuu | yes I can see, telnet is the easier | 10:15 |
kodokuu | But now, I need just a simple instance with a volume ;) | 10:16 |
*** kodokuu_ has joined #murano | 10:17 | |
*** kodokuu has quit IRC | 10:20 | |
kodokuu_ | For use script in muranoPL, guest need to have murano-agent ? | 10:21 |
katyafervent | yes, image should contain murano-agent | 10:25 |
katyafervent | if you ll upload package from apps.openstack.org image will dowbload automatically | 10:25 |
katyafervent | * download | 10:25 |
kodokuu_ | yes in my house I can use that, But in my company, we use company image, with no agent. This is why we use user-data for download scripts | 10:28 |
katyafervent | ok | 10:29 |
*** klkumar has quit IRC | 10:29 | |
kodokuu_ | It's very hard to use openstack with contraints of his company. | 10:30 |
kodokuu_ | or we need to be a start up :) | 10:30 |
*** akulshin has quit IRC | 10:30 | |
*** klkumar has joined #murano | 10:30 | |
kodokuu_ | katyafervent For murano agent, heat deploy with user-data the murano.conf ? or we need the CFN agent too ? | 10:38 |
katyafervent | you don't need another agent afaik | 10:41 |
katyafervent | freerunner, please take a look to the last question :) | 10:42 |
*** ashishb has quit IRC | 10:46 | |
kodokuu_ | katyafervent ok can you confirme my idea ;) | 10:55 |
kodokuu_ | I need juste a vm with user-data and a volume on this instance | 10:55 |
kodokuu_ | I juste need a class file | 10:55 |
kodokuu_ | If I don't have script, not need ressource folder ? | 10:55 |
katyafervent | yes, if you not intend to execute any scripts resources folder can be omitted | 10:57 |
katyafervent | also, take a look how heat stack can be composed from MuranoPl class (manually) https://github.com/murano-project/murano-app-incubator/blob/69950b6c4598a707d17cf578e24f6bc66d99be9e/io.murano.apps.test.SimpleVMcluster/Classes/SimpleVMcluster.yaml | 11:00 |
katyafervent | there is a heat template 'template', that is filled in the MuranoPL | 11:00 |
kodokuu_ | I use apache package for example | 11:06 |
kodokuu_ | I conf params in my ui, and in my class I have $.instance.deploy() for launch instance | 11:07 |
kodokuu_ | But where can I find all params can be conf in UI for io.murano.resources.LinuxMuranoInstance | 11:07 |
kodokuu_ | and should I import a io.murano.resources.LinuxMuranoInstance ? Or this is core library and already in murano | 11:08 |
katyafervent | io.murano.resources.LinuxMuranoInstance is a core library, yes | 11:11 |
katyafervent | it is inherited from https://github.com/openstack/murano/blob/master/meta/io.murano/Classes/resources/Instance.yaml | 11:12 |
katyafervent | some of those attributes are set up automatically and some are asked from the user | 11:13 |
*** kzaitsev_mb has joined #murano | 11:16 | |
kodokuu_ | katyafervent ok My first trace :) http://paste.openstack.org/show/481617/ | 11:20 |
kodokuu_ | I gues pb with network choice | 11:20 |
kodokuu_ | I have just a network, without router, this is my only network | 11:22 |
*** klkumar has quit IRC | 11:23 | |
*** klkumar has joined #murano | 11:24 | |
*** jesuspg has quit IRC | 11:24 | |
slagun | kodokuu_: hi! | 11:25 |
*** kodokuu has joined #murano | 11:26 | |
kodokuu | slagun Hi | 11:26 |
slagun | kodokuu_: there is an ongoing work to install agent trough cloud-init. There is already commit on review that does just that | 11:26 |
*** gangadhar has quit IRC | 11:26 | |
kodokuu | ok ;) | 11:27 |
*** jesuspg has joined #murano | 11:27 | |
*** pbrzozowski has joined #murano | 11:28 | |
slagun | kodokuu: the trace you have shows that it cannot find a network with the name FO1999 | 11:28 |
*** fuel-slackbot has joined #murano | 11:28 | |
kodokuu | neutron net-list eb124502-1e8e-4ef5-8f4b-e23bb74e1cd4 | FO1999 | 2429736d-08c4-40cd-afc8-d623e79bcfce 10.121.208.0/22 | 11:28 |
pbrzozowski | test | 11:29 |
*** kodokuu_ has quit IRC | 11:29 | |
kodokuu | slagun this network is public and shared | 11:29 |
kodokuu | slagun I can see in log ==> 2015-12-11 12:23:47.735 6796 DEBUG neutronclient.client [-] RESP:200 {'.... {"networks": [{"status": "ACTIVE", "subnets": ["2429736d-08c4-40cd-afc8-d623e79bcfce"], "name": "FO1999", "provider:physical_network": "physnet1", "router:external": false, "tenant_id": "5d0caa4b3184459ab2ef5f84519ff268", "admin_state_up": true, "mtu": null, "shared": true, "provider:network_type": "vlan",...... | 11:33 |
kodokuu | So murano check this network and find it. | 11:34 |
slagun | it is not Murano's message | 11:34 |
kodokuu | it's in murano.log | 11:35 |
slagun | yes, from neutron-client | 11:35 |
kodokuu | yes but it's murano which call neutron-client no ? So murano have this information ? | 11:35 |
slagun | kodokuu: can you share murano-engine log? | 11:37 |
kodokuu | all ? | 11:38 |
slagun | last deployment with this error. Starting from "Starting processing" | 11:38 |
kodokuu | slagun I send you in MP because I can't publish full log (private info) | 11:42 |
*** pbrzozowski has left #murano | 11:42 | |
*** kzaitsev_mb has quit IRC | 11:43 | |
slagun | kodokuu: there is a different network name in the log | 11:46 |
*** kzaitsev_mb has joined #murano | 11:55 | |
*** kodokuu has quit IRC | 11:55 | |
*** akulshin has joined #murano | 12:00 | |
*** raildo-afk is now known as raildo | 12:08 | |
*** kzaitsev_mb has quit IRC | 12:20 | |
*** kodokuu has joined #murano | 12:21 | |
kodokuu | slagun yes my old netconfig have FO1963 But I change and restart all service | 12:22 |
*** kzaitsev_mb has joined #murano | 12:22 | |
kodokuu | I need to resync db or other action ? | 12:22 |
slagun | no, netconfig file should be automatically applied to newly created environments | 12:22 |
kodokuu | haaa | 12:23 |
kodokuu | I use same env | 12:23 |
kodokuu | before my update | 12:23 |
kodokuu | ok need to recreate env | 12:23 |
kodokuu | slagun ok new trace "Quota exceeded for resources: ['security_group']" | 12:25 |
kodokuu | very strange because I don't create or modify security group in my class or UI | 12:25 |
slagun | Security group is created for each Murano env. It happens when you call deploy() on the Instance because in adds rule for port 22 | 12:26 |
kodokuu | Maybe, by default, $.instance.deploy() create a new security group | 12:26 |
slagun | yes | 12:27 |
kodokuu | ha yes | 12:27 |
kodokuu | :) | 12:27 |
kodokuu | We can disable ? | 12:27 |
slagun | there is no built-in method to disable without code patching | 12:27 |
kodokuu | arf | 12:27 |
slagun | why it is a problem? Usually you shouldn't need to have many environments | 12:29 |
kodokuu | I have disable security group because I use Vmware Backend for nova | 12:30 |
kodokuu | but no pb, I re-activate | 12:31 |
kodokuu | next lol The requested availability zone is not available | 12:31 |
kodokuu | I have just one AZ | 12:32 |
slagun | kodokuu: yes, I've heard this use case several times already. It will be great if you fill a blueprint on LP for that. And of cause any contributions are appreciated | 12:32 |
*** ddovbii has joined #murano | 12:32 | |
slagun | usually you can select AZ in UI form with 'nova' being the default | 12:33 |
kodokuu | I can make a BP no pb ;) | 12:33 |
openstackgerrit | Victor Ryzhenkin proposed openstack/murano-deployment: Remove redundant source parameter in zuul.layout https://review.openstack.org/256390 | 12:34 |
kodokuu | slagun how can I use nova for that ? | 12:35 |
kodokuu | Because I see lot of example in https://github.com/murano-project/murano-app-incubator/tree/69950b6c4598a707d17cf578e24f6bc66d99be9e | 12:36 |
kodokuu | And in UI file, never use AZ | 12:36 |
slagun | kodokuu: didn't get the question. AZ is just a string - property of the Instance class and it has 'nova' as its default. But UI forms usually ask for it | 12:36 |
slagun | kodokuu: don't use app-incubator, it is deprecated for a long time | 12:37 |
slagun | https://github.com/openstack/murano-apps | 12:37 |
kodokuu | ok I see name: availabilityZone | 12:37 |
kodokuu | so I can force and hidden:true | 12:37 |
slagun | you can just omit this field at all if you don't need it and happy with the default | 12:38 |
kodokuu | you say me it's string but I can see - name: availabilityZone type: azone | 12:38 |
kodokuu | nova it's not my default AZ, so I need to force it | 12:38 |
slagun | it is string form MuranoPL. type azone is for UI to present drop-box with list of azones | 12:39 |
slagun | *for MuranoPL* | 12:39 |
kodokuu | ok :) | 12:40 |
*** fuel-slackbot has quit IRC | 12:42 | |
kodokuu | OMG YES | 12:46 |
kodokuu | I succes to build my first package muranoPL | 12:47 |
*** fuel-slackbot has joined #murano | 12:47 | |
kodokuu | thx slagun | 12:47 |
kodokuu | And now I can see the possibilities | 12:47 |
kodokuu | now, need to attach volume to my instance ;) | 12:48 |
kodokuu | and configure user-data on my instance ;) | 12:49 |
slagun | :) | 12:54 |
Nikolay_St | kodokuu: congrats, kodokuu | 12:54 |
*** kodokuu has quit IRC | 12:55 | |
*** kodokuu has joined #murano | 13:02 | |
*** ducttape_ has joined #murano | 13:05 | |
*** kodokuu_ has joined #murano | 13:07 | |
kodokuu_ | I hate my proxy ^^ | 13:07 |
*** kodokuu has quit IRC | 13:09 | |
kodokuu_ | slagun And I see I use linuxinstance class but If I use just instance class, no need security group :) | 13:09 |
kodokuu_ | Because LinuxInstance just add security group port 22 | 13:09 |
*** kodokuu_ has quit IRC | 13:14 | |
*** kodokuu has joined #murano | 13:25 | |
slagun | kodokuu: yes, you can make your own Instance child. But that would be a workaround | 13:25 |
*** ducttape_ has quit IRC | 13:27 | |
*** akulshin has quit IRC | 13:27 | |
kodokuu | slagun ok | 13:29 |
kodokuu | But now I need to conf userdata, so I use LinuxUDInstance | 13:30 |
kodokuu | But I don't know how force userdata | 13:30 |
kodokuu | I add in UI: - instanceConfiguration: fields: - name: UserData type: string hidden: true | 13:30 |
slagun | I mean if we eliminate the need for such workarounds it would be beneficial for everyone :) | 13:30 |
slagun | you want to have user data in UI? | 13:31 |
kodokuu | nop | 13:31 |
slagun | then why you put in in UI? | 13:31 |
kodokuu | I can put in class yeah | 13:32 |
kodokuu | in Properties: ? | 13:32 |
slagun | since you're going to create custom Instance class you can override a method that builds user data field | 13:33 |
slagun | https://github.com/openstack/murano/blob/master/meta/io.murano/Classes/resources/Instance.yaml#L269 | 13:33 |
kodokuu | yes I see | 13:33 |
kodokuu | But there is already a class for add userdata | 13:34 |
kodokuu | https://github.com/openstack/murano/blob/stable/kilo/meta/io.murano/Classes/resources/LinuxUDInstance.yaml | 13:34 |
slagun | this is just another Instance inheritor that could be used for cirros image | 13:34 |
slagun | you don't need it | 13:34 |
kodokuu | and I change this class for Extends: - Instance | 13:34 |
slagun | kodokuu: you can create your own class that inherits from Instance directly | 13:35 |
kodokuu | yes I can ^^ | 13:35 |
kodokuu | But I see in your docs LinuxUDInstance adds a custom user-data field allowing the services to supply their own user data. | 13:36 |
slagun | actually I don't know what LinuxUDInstance is | 13:36 |
slagun | because there is no property for userData there | 13:37 |
slagun | I guess it is a bug | 13:37 |
kodokuu | I don't undestand | 13:37 |
slagun | You can add missing property and contribute it to Murano. And then inherit from LinuxUDInstance and just suppress security group creation | 13:38 |
kodokuu | in LinuxUDInstance I can see function for add userdata | 13:38 |
slagun | there is no way to initialize $.customUserData. There should be a property with such name | 13:38 |
kodokuu | and - $.customUserData: $data | 13:39 |
slagun | yes, but you cannot pass this value from UI or something. You cannot call this method from outside | 13:42 |
slagun | probably need to see git log to find why it was done so | 13:42 |
*** kodokuu_ has joined #murano | 13:44 | |
kodokuu_ | ok so I need to modify it. Need to add method for we can pass value | 13:44 |
*** kodokuu has quit IRC | 13:45 | |
slagun | kodokuu_: I guess no to break anything you can just add a property with "Usage: InOut" and leave the method so it could be modified both ways | 13:46 |
kodokuu_ | slagun look this commit https://github.com/openstack/murano/commit/1c1144692ca89ed49a5df2cbac258fe4ed167d77 | 13:48 |
*** samuelBartel has joined #murano | 13:49 | |
kodokuu_ | why he remove Usage: InOut ? | 13:51 |
slagun | I see | 13:51 |
slagun | the problem is with string() | 13:51 |
slagun | he wanted a user data to be a dictionary with str_replace | 13:52 |
slagun | not a string | 13:52 |
slagun | not a good idea because caller shouldn't be aware of Heat syntax to do string replacement. There is a yaql function to do that | 13:53 |
kodokuu_ | Ok I use str_replace in my heat script for now | 13:53 |
kodokuu_ | But I can replace this function by yaql function | 13:54 |
slagun | okay, lets leave this class alone in current version since somebody may be using it | 13:54 |
slagun | I suggest you to make a private copy of it | 13:54 |
kodokuu_ | Ok I'll create a new class | 13:54 |
kodokuu_ | But I don't know how to begin | 13:55 |
slagun | It is not a problem to use str_replace. But it shouldn't be exposed to outside of the class. It is an implementation detail | 13:55 |
slagun | Copy the class to your package, change class name, and current namespace, declare it in manifest.yaml | 13:56 |
*** kodokuu has joined #murano | 13:56 | |
kodokuu | sorry my proxy stuck !!! | 13:57 |
*** kodokuu_ has quit IRC | 13:59 | |
slagun | what was the last message you saw? | 14:02 |
kodokuu | i go to read logs no pb ;) | 14:02 |
kodokuu | ok when you say copy class | 14:03 |
kodokuu | you talk about LinuxUDInstance.yaml | 14:03 |
slagun | yep. It is a good starting point if you don't want to start from scratch | 14:04 |
kodokuu | ok it's good | 14:06 |
kodokuu | now I modify new class with InOut | 14:06 |
*** jesuspg has quit IRC | 14:07 | |
slagun | not necessary. Tince now it is going to be your private class you can design it to whatever matches your needs best | 14:08 |
slagun | I don't know if you need the property. Generally it is needed if you going to pass user data string from UI | 14:08 |
kodokuu | I want to expose package with userdata already good | 14:09 |
slagun | if you're going to construct it by yourself you can just put the code in prepareUserData | 14:09 |
kodokuu | apache package, postgresql package | 14:09 |
kodokuu | But in my company, I install packages with private scripts | 14:09 |
slagun | are those scripts differ for each application? | 14:10 |
slagun | I mean you are not going to install murano agent by the script? You have like custom script for each app and you want to pass it in user data? | 14:11 |
*** kodokuu_ has joined #murano | 14:11 | |
kodokuu_ | so user data say to my instance to download this script and execute with params | 14:12 |
kodokuu_ | But I want to expose in UI params | 14:12 |
kodokuu_ | sorry proxy ^^ | 14:12 |
slagun | I can hardly imagine users typing shell scripts into an input field in UI :) | 14:13 |
kodokuu_ | yes | 14:13 |
kodokuu_ | user input just database name or other params | 14:13 |
*** kodokuu has quit IRC | 14:13 | |
slagun | so you're not going to ask user for input data. Instead you will be asking for database name etc and then put those values into script using string replacement functions? | 14:14 |
slagun | now I see | 14:15 |
slagun | them LinuxUDInstance will do the job | 14:15 |
*** kodokuuproxy has joined #murano | 14:15 | |
slagun | then | 14:15 |
slagun | because you have to construct user data anyway | 14:16 |
kodokuuproxy | Ok with my phone is good :) | 14:16 |
slagun | :) | 14:16 |
*** jesuspg has joined #murano | 14:16 | |
kodokuuproxy | I read logs and yes | 14:17 |
kodokuuproxy | You understand | 14:17 |
kodokuuproxy | Goal= user input in ui params like database name... Murano create instance and add user data ( download script and launch it with params) | 14:18 |
*** kodokuu_ has quit IRC | 14:18 | |
kodokuuproxy | And i have one script for one apps. | 14:18 |
kodokuuproxy | So one package murano for one apps | 14:18 |
slagun | okay. Then LinuxUDInstance is fine if you're okay with security groups. Otherwise you will have to inherit from LinuxUDInstance to disable them | 14:19 |
kodokuuproxy | So for me next step, launch package with hard user data. And next try to expose params in UI | 14:19 |
kodokuuproxy | Yes linuxUD inherit from instance now. So no need security groups | 14:20 |
slagun | ask user for whatever you need, then construct user data in MuranoPL and call setCustomUserData *prior* to calling instance.deploy() | 14:20 |
kodokuuproxy | Yes | 14:21 |
slagun | LinuxUDInstance inherits from LinuxInstance, not Instance | 14:21 |
kodokuuproxy | I change it | 14:21 |
kodokuuproxy | Linuxinstance is useless for me | 14:22 |
slagun | Not a best idea because now it will be harder for you to migrate to newer versions of Murano. We modify core library from time to time and once you patch it you end up with custom core library that you will need to maintain | 14:23 |
kodokuuproxy | I create new class. Inherit from instance. I copy in my package. And I change type of my instance with this new class ;) | 14:23 |
kodokuuproxy | And I copy linuxUD in this class | 14:24 |
slagun | okay, this will work. Just use your own namespace | 14:24 |
kodokuuproxy | Yes io.murano.best. ;) | 14:25 |
slagun | :) | 14:25 |
kodokuuproxy | And i need to add volume to my instance | 14:26 |
*** kodokuu has joined #murano | 14:27 | |
kodokuu | Ok my new class is userdata | 14:28 |
kodokuu | So In my deploy | 14:28 |
kodokuu | I add - $.userdata.setCustomUserData() | 14:28 |
kodokuu | Before - $.instance.deploy() | 14:28 |
slagun | no. $.instance.setCustomUserData($.userdata) | 14:29 |
kodokuu | ok | 14:29 |
slagun | probably even $userdata since it can be a local variable | 14:29 |
kodokuu | need to add $.userdata in Properties: | 14:29 |
slagun | $userData: $.constructUserData(); $.instance.setCustomUserData($userData). $.instance.deploy() | 14:30 |
kodokuu | but what the goal of my new class ? | 14:31 |
slagun | Properties are for public things. $.propertyThatIsNotDeclared = private property; $something means local variable | 14:31 |
slagun | You have class per application. Its properties = what you want to ask from user | 14:31 |
*** sergmelikyan has joined #murano | 14:33 | |
*** klkumar has quit IRC | 14:35 | |
openstackgerrit | Ekaterina Chernova proposed openstack/murano-apps: [Tomcat] Remove unused 'server' variable https://review.openstack.org/256435 | 14:35 |
kodokuu | slagun http://paste.openstack.org/show/481655/ | 14:36 |
kodokuu | Now you can see my package ;) | 14:36 |
kodokuu | I guess it's missing in UI input for USER. And miss in userdata class, my $.userdata with params ;) | 14:37 |
*** klkumar has joined #murano | 14:38 | |
kodokuu | error in my paste, for UI it's Application: ?: type: io.murano.apps.blank.InstanceWithVolume | 14:41 |
slagun | instance should have a contract $.class(YourCustomLinuxUDInstanceCopy) | 14:43 |
slagun | and you don't have constructUserData method | 14:44 |
slagun | Let me write an example for you | 14:44 |
kodokuu | ok thx | 14:45 |
slagun | kodokuu: http://paste.ubuntu.com/13931840/ | 14:49 |
slagun | forgot Extends | 14:50 |
kodokuu | ok | 14:52 |
kodokuu | this is replace my InstanceWithVolume class | 14:52 |
kodokuu | but you use ressource | 14:53 |
kodokuu | myScriptForPostgreSql.sh need to be in my package ? | 14:53 |
slagun | in Resources folder | 14:54 |
slagun | thats if you want to have script template in separate file | 14:55 |
kodokuu | ok | 14:55 |
kodokuu | so | 14:55 |
slagun | don't know about volumes. You might want to customize Instance's deploy method to create volume | 14:55 |
kodokuu | $myScriptTemplate is the script | 14:55 |
slagun | it is the content of the file that is template for the script | 14:56 |
kodokuu | ok perfect | 14:56 |
kodokuu | but last question | 14:56 |
kodokuu | Contract: $.class(MyPrivateLinuxUDInstance) | 14:56 |
kodokuu | I can use LinuxUDInstance no ? because we don't change anything in this class | 14:57 |
*** jesuspg has quit IRC | 14:57 | |
slagun | You sad that you're going to change its parent class from LinuxInstance to Instance | 14:57 |
slagun | said | 14:57 |
kodokuuproxy | Ha yes right. | 14:58 |
kodokuuproxy | I go to test now | 14:58 |
*** kodokuu_ has joined #murano | 14:58 | |
*** enthurohini has joined #murano | 15:01 | |
*** kodokuu has quit IRC | 15:01 | |
*** Liuqing has joined #murano | 15:05 | |
kodokuu_ | slagun need to create my script in ressource folder | 15:06 |
kodokuu_ | in scripts folder or directly in ressources ? | 15:06 |
slagun | yes | 15:07 |
slagun | directly | 15:07 |
kodokuu_ | ok | 15:07 |
kodokuu_ | so in ui.yaml | 15:09 |
kodokuu_ | I add databaseName: $.instanceConfiguration.databaseName in instance: | 15:09 |
slagun | why? | 15:09 |
kodokuu_ | for add input | 15:11 |
slagun | why in instanceConfiguration? Is it a setting of you application, not of an instance | 15:12 |
kodokuu_ | ha yes | 15:12 |
openstackgerrit | Merged openstack/murano: Improve public network detection algorithm https://review.openstack.org/254910 | 15:12 |
*** ducttape_ has joined #murano | 15:19 | |
openstackgerrit | Olga Gusarenko proposed openstack/murano: [AppDev Guide] MuranoPL Core library https://review.openstack.org/256481 | 15:19 |
openstackgerrit | OpenStack Proposal Bot proposed openstack/murano: Updated from global requirements https://review.openstack.org/256490 | 15:20 |
kodokuu_ | slagun I have io.murano.apps.blank.Instance is not found | 15:20 |
kodokuu_ | Because I guess I have Extends: - Instance | 15:21 |
kodokuu_ | in my private class | 15:21 |
kodokuu_ | need to add io.murano.ressources.Instance | 15:21 |
kodokuu_ | ? | 15:21 |
slagun | yes | 15:22 |
*** sergmelikyan has quit IRC | 15:22 | |
kodokuu_ | Extends: - io.murano.ressources.Instance | 15:22 |
*** vgridnev has quit IRC | 15:22 | |
kodokuu_ | no need to change namespace ? | 15:22 |
slagun | you need to use proper namespace prefix | 15:22 |
kodokuu_ | ok | 15:22 |
*** _ducttape_ has joined #murano | 15:24 | |
*** ducttape_ has quit IRC | 15:25 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/python-muranoclient: Updated from global requirements https://review.openstack.org/256523 | 15:25 |
openstackgerrit | Olga Gusarenko proposed openstack/murano: [AppDev Guide] MuranoPL Core library https://review.openstack.org/256481 | 15:26 |
openstackgerrit | Olga Gusarenko proposed openstack/murano: [AppDev Guide] MuranoPL Core library https://review.openstack.org/256481 | 15:26 |
*** kodokuu_ has quit IRC | 15:31 | |
*** vgridnev has joined #murano | 15:31 | |
*** kodokuu has joined #murano | 15:31 | |
*** vgridnev has quit IRC | 15:31 | |
kodokuu | slagun I think pb | 15:31 |
kodokuu | ContractViolationException: null value violates notNull() contract | 15:31 |
*** Nikolay_St has quit IRC | 15:32 | |
kodokuu | in original LinuxUD | 15:32 |
kodokuu | ontract: $.string().notNull() | 15:32 |
kodokuu | and - $.customUserData: null | 15:32 |
kodokuu | not good ? | 15:32 |
slagun | kodokuu: you don't need this property at att | 15:32 |
slagun | all | 15:32 |
kodokuu | I remove customUserData: Contract: $.string().notNull() ? | 15:33 |
slagun | yes | 15:33 |
kodokuu | hum | 15:33 |
slagun | as it was in original LinuxUDInstance | 15:33 |
kodokuu | ok | 15:34 |
*** vgridnev has joined #murano | 15:35 | |
*** vgridnev has quit IRC | 15:35 | |
kodokuu | always same error | 15:36 |
kodokuu | I have three notnull | 15:37 |
kodokuu | name: Contract: $.string().notNull() AND databaseName: Contract: $.string().notNull() in my APP class | 15:37 |
kodokuu | and the last in private userdata class ==> setCustomUserData: Arguments: - data: Contract: $.notNull() | 15:38 |
kodokuu | So I guess, the input doesn't works and databasename is null | 15:38 |
kodokuu | ok I find | 15:39 |
kodokuu | sorry I talk in solo | 15:39 |
kodokuu | >< | 15:39 |
kodokuu | omg vm creating | 15:40 |
kodokuu | slagun nooooo :( | 15:41 |
kodokuu | Access to uninitialized property userdata in class io.murano.apps.blank.InstanceWithVolume is forbidden | 15:41 |
*** Liuqing has quit IRC | 15:42 | |
kodokuu | need to call initialize before constructUserData ? | 15:43 |
slagun | no | 15:44 |
slagun | can you share the entire package for me to check what's wrong? | 15:45 |
kodokuu | yes | 15:45 |
*** sergmelikyan has joined #murano | 15:45 | |
kodokuu | hum where can I update file ? | 15:45 |
slagun | you mean upload? | 15:46 |
kodokuu | yes | 15:46 |
kodokuu | sorry | 15:46 |
kodokuu | need to sleep ;) | 15:46 |
slagun | any file hosting. uploaded.to, dropbox, google drive | 15:46 |
kodokuu | ha you don't know my proxy lool | 15:46 |
kodokuu | drive maybe | 15:46 |
*** ducttape_ has joined #murano | 15:47 | |
*** _ducttape_ has quit IRC | 15:49 | |
*** jesuspg has joined #murano | 15:52 | |
*** jesuspg has quit IRC | 15:52 | |
openstackgerrit | Victor Ryzhenkin proposed openstack/murano-deployment: WIP https://review.openstack.org/251887 | 15:55 |
*** _ducttape_ has joined #murano | 15:58 | |
*** ducttape_ has quit IRC | 16:01 | |
enthurohini | kzaitsev_mb , there? | 16:13 |
kzaitsev_mb | yep | 16:14 |
*** klkumar has quit IRC | 16:16 | |
enthurohini | kzaitsev_mb, if I will run ./unstack.sh in after successfull installation, what else i will need to do to again clean run of ./stack.sh? | 16:25 |
enthurohini | *in devstack | 16:25 |
*** _ducttape_ has quit IRC | 16:28 | |
kzaitsev_mb | ./clean.sh Ш пгуыы | 16:33 |
kzaitsev_mb | I guess | 16:33 |
kzaitsev_mb | but that might be not necessary ) | 16:33 |
kzaitsev_mb | it would uninstall packages installed | 16:33 |
kzaitsev_mb | during stack.sh | 16:33 |
enthurohini | and the env that are setup using tox?? | 16:34 |
kzaitsev_mb | I don't think stack.sh uses tox anywhere | 16:34 |
kzaitsev_mb | although I might be wrong | 16:34 |
enthurohini | it uses | 16:34 |
enthurohini | some tests are applied using it | 16:35 |
kzaitsev_mb | then either clean or unstack should delete them | 16:35 |
enthurohini | ok, actually I need to update heat cli, since my current cli version dont have --tag option | 16:36 |
enthurohini | so should i update whole devstack or just pip upgrade will work? | 16:36 |
kzaitsev_mb | if you only need one thing updated — no point in reinstalling everything, right? | 16:37 |
enthurohini | yes | 16:37 |
enthurohini | kzaitsev_mb, if i pull in repo, then does it require to restart the server? | 16:39 |
kzaitsev_mb | enthurohini: of course | 16:39 |
enthurohini | ok! | 16:40 |
enthurohini | thanks | 16:40 |
*** klkumar has joined #murano | 16:43 | |
*** kodokuuproxy has quit IRC | 16:49 | |
*** samuelBartel has quit IRC | 16:50 | |
*** kodokuu has quit IRC | 17:06 | |
*** thumpba has joined #murano | 17:08 | |
*** sergmelikyan has quit IRC | 17:08 | |
*** sergmelikyan has joined #murano | 17:12 | |
*** ducttape_ has joined #murano | 17:18 | |
*** jasonsb has quit IRC | 17:19 | |
*** kzaitsev_mb has quit IRC | 17:23 | |
*** sergmelikyan has quit IRC | 17:35 | |
*** vahidh has quit IRC | 17:40 | |
*** klkumar has quit IRC | 18:00 | |
*** klkumar has joined #murano | 18:01 | |
*** sergmelikyan has joined #murano | 18:04 | |
*** vahidh has joined #murano | 18:07 | |
*** sergmelikyan has quit IRC | 18:08 | |
*** jasonsb has joined #murano | 18:09 | |
*** sergmelikyan has joined #murano | 18:17 | |
*** jasonsb has quit IRC | 18:31 | |
*** jasonsb has joined #murano | 18:31 | |
*** sergmelikyan has quit IRC | 18:38 | |
*** ducttape_ has quit IRC | 18:45 | |
*** sergmelikyan has joined #murano | 18:49 | |
*** sergmelikyan has quit IRC | 19:00 | |
*** klkumar has quit IRC | 19:18 | |
*** jasonsb has quit IRC | 19:19 | |
*** jasonsb has joined #murano | 19:20 | |
*** twedgar has joined #murano | 19:21 | |
*** raildo is now known as raildo-afk | 19:30 | |
*** raildo-afk is now known as raildo | 19:30 | |
*** sergmelikyan has joined #murano | 19:36 | |
*** sergmelikyan has quit IRC | 19:40 | |
*** sergmelikyan has joined #murano | 19:43 | |
*** sergmelikyan has quit IRC | 19:44 | |
*** ducttape_ has joined #murano | 20:00 | |
*** raildo is now known as raildo-afk | 20:28 | |
*** Nikolay_St has joined #murano | 20:31 | |
*** sergmelikyan has joined #murano | 20:52 | |
*** sergmelikyan has quit IRC | 20:54 | |
*** ducttape_ has quit IRC | 21:35 | |
*** ducttape_ has joined #murano | 21:36 | |
*** ducttape_ has quit IRC | 21:40 | |
openstackgerrit | Ondřej Nový proposed openstack/murano-dashboard: Deprecated tox -downloadcache option removed https://review.openstack.org/256787 | 22:06 |
*** ducttape_ has joined #murano | 22:26 | |
*** openstackgerrit has quit IRC | 22:37 | |
*** openstackgerrit has joined #murano | 22:37 | |
*** thumpba has quit IRC | 22:43 | |
*** thumpba has joined #murano | 22:58 | |
*** ducttape_ has quit IRC | 23:12 | |
*** enthurohini has quit IRC | 23:14 | |
*** thumpba has quit IRC | 23:28 | |
*** thumpba_ has joined #murano | 23:31 | |
*** jasonsb has quit IRC | 23:38 | |
*** thumpba_ has quit IRC | 23:49 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!