/srv/irclogs.ubuntu.com/2016/11/07/#juju.txt

=== CyberJacob is now known as zz_CyberJacob
rockh05:12
rockHi all. We pushed our charm to charm public store using Ubuntu SSO account. Charm will be present in store as cs:~hareeshk/kaminario-cinder-10 .  Here "hareeshk" is the account username. we removed this user account. And using same mailID we created another user account. and pushed charm to public store again. cs:~kaminario2/kaminario-cinder-0.   But in store previous pushed charm also there. We forgot to revoke the permissions of that c05:58
rockHow do we remove that charm from store. We tried to create same user account. But It was showing "hareeshk" username already in use. But we deleted that user account.05:59
rock"hareeshk" will be stored some where in server Cache.05:59
rick_h___rock: file a bug in https://github.com/canonicalltd/jujucharms.com and will mention it to the folks that manage the charmstore06:22
rockrick_h__: Thank you.06:52
=== babbageclunk is now known as babbageclunkafk
=== macgreag1ir is now known as macgreagoir
SimonKLBhow do i install the charm-terms commands? they don't seem to be in by default in charm-tools 2.1.509:12
pascalmazonHi, I've recently reinstalled charm tools (2.1.5-0ubuntu1~ubuntu14.04.1~ppa2) on a trusty. However when I try to call `charm proof`, it complains that pip isn't the correct version: "pkg_resources.DistributionNotFound: The 'pip>=7.1.2' distribution was not found and is required by charm-tools". Any ideas?10:35
SimonKLBpascalmazon: https://github.com/juju/charm-tools/issues/27410:36
pascalmazonSimonKLB: oh thanks, I should have checked there…10:37
anrahHi all! I was about to ask what the prefer-ipv6 option should do and is it still available on juju 2.0?12:34
anrahAt least when that is set to a model nodes private-address still is ipv412:35
=== saibarsp_ is now known as saibarspeis
BlackDexHello there. I want to know if it is somehow possible to have multiple hacluster's on one node?12:44
BlackDexCurrently it seems that it doesn, because haproxy isn't getting configured12:44
=== hml_ is now known as hml
kikomorning15:20
=== iatrou_ is now known as iatrou
lazyPowerbdx - should i resched the elastic stack planning session?17:07
=== daniel1 is now known as Odd_Bloke
bdxlazyPower: shit17:18
bdxI'm so sorry17:18
lazyPowerbdx no worries, we'll reschedule and reconvene17:18
lazyPowerbdx and family friendly language *shakes a finger*17:18
bdxwas stuck in a  bit of traffic ... just getting in now17:18
marcoceppithis is...the internet ;)17:18
bdxmy b17:18
lazyPoweri think the meeting time is a bit early for your TZ17:18
lazyPoweri was trying to overlap with le magicaltrout's EU TZ as well17:19
bdxusually I'm online by 817:19
bdxso 9 is ok17:19
lazyPowerok, would you want to try to do this again later this week?17:19
bdxdefinitely17:20
lazyPowerok, i'll send something out later today :)17:21
lazyPowermarcoceppi - FYI, we're blocked atm on completing that PR for the test infra. they moved some files and i'm tracking down their result munging scripts17:22
bdxperfect17:22
vmorrislazyPower: https://goo.gl/images/kkpQ8j17:58
lazyPowerthat ^17:58
x58charm proof is complaining I don't have any "provides", so I set a provides... and now it's complaining that I don't provide hooks for that...18:28
x58Is there a way to have charm proof not complain, yet not really "provide" anything, and thus not need hooks for it.18:28
x58My charm only sets information in the OS, it doesn't provide any services or anything that anyone can relate with.18:29
x58What is the best way to use the juju-info interface? charm proof complains about using juju-info as the requires name, yet that is what the docs tell me to use...18:41
=== zz_CyberJacob is now known as CyberJacob
bdxconcerning juju resources, is the jujuresources pkg the recommended path to managing resources?19:00
bdxI'm looking at this documentation here -> http://pythonhosted.org/jujuresources/index.html19:00
bdxwondering if its current19:00
jrwrenbdx: that is not current for juju 2.019:01
bdxjrwren: thx, do you know of current api docs for 2.0 resources?19:01
jrwrenbdx: https://jujucharms.com/docs/stable/developer-resources19:01
bdxjrwren: no python api tho?19:02
jrwrenbdx: there is a wrapper around resource-get in charmhelpers.19:02
bdxother than what is offered throught hookenv?19:02
jrwrenbdx: I don't know.19:02
bdxgotcha, ok ... just wanted to make sure I wasn't missing something here19:03
bdxjrwren: thx19:03
bdxcory_fu: really nice job on the jujuresources pkg and docs19:05
bdxcory_fu:  would you mind updating them to indicate juju 1.x only pls19:05
bdxconcerning resources, does the 'upgrade-charm' hook run when `charm attach` is ran?19:07
jrwrenbdx: no.19:08
jrwrenbdx: you can run that yourself, or write an action which uses the resource and run that action.19:08
bdxjrwren: I'm thinking abount a ci use case, where say jenkins might run `charm attach` following successful build of the resource19:10
bdxjrwren: what you are saying is this might be best implemented having jenkins run `charm attach`, following that an action that gets and unpacks the resource19:11
jrwrenbdx: that is fine. it can just as easily run juju upgrade-charm or juju action run BLAH as a next step.19:11
bdxjrwren: ah, so a better workflow might be; `charm attach` to get the new resource in the charm store, then `juju attach` to get the resource onto the controller, then `juju action run` to get the charm to grab the new resource19:15
marcoceppibdx jrwren yes it is19:15
marcoceppibdx jrwren when you attach resources, upgrade-charm is run19:15
marcoceppibdx: it's either charm attach, then juju upgrade-charm, or juju attach19:16
jrwrenoh no!19:16
jrwrensorry bdx19:16
marcoceppithen upgrade-charm runs for both.19:16
bdxmarcoceppi: oh nice, so I can just react to the upgrade-charm hook instead of a custom action following the attaching oof a new resource19:16
jrwrenbdx: for a CI scenario you describe, I'd skip the charmstore entirely.19:16
x58I am trying to use juju-info interface as a requires to allow my charm to be a sub-ordinate, however as soon as I add the updated charm to the relation and run juju add-relation <other charm> <my charm> it says no relations found.19:16
marcoceppibdx: yeah, lazyPower has done this a lot19:17
marcoceppioh, and he left19:17
bdxjrwren: but when new deploys happen, I want the charm to deploy with the latest resource19:18
marcoceppibdx: it will19:18
marcoceppibdx:  whatever is in the charm store, will get deployed19:18
marcoceppiyou don't need to attach post deployment19:18
bdxjrwren: hence why I feel keeping the charm store resource up to date is important too19:18
jrwrenbdx: ok, its up to you.19:18
bdxjrwren: if the charm store step is skipped, then deploying a new instance of the charm would require the user having the rescource19:19
marcoceppibdx: right, bdx I think you're on the right train of thought19:20
bdxjrwren: what I'm thinking, is if its just fully left up to jenkins, then the resource is always current, and the dev/user deploying doesn't have to know or care about it19:20
x58marcoceppi: I have: https://gitlab.com/bertjwregeer/juju_staticroutes/blob/master/metadata.yaml#L16 yet when I call juju add-relation ceph-osd:juju-info staticroutes:host-system it fails to work... documentation says to use "juju-info" as the requires name, but I can't push to the charmstore when I use that...19:21
x58(juju says "no relations found")19:21
bdxjrwren, marcoceppi: is there any juju<->jenkins plugins work currently being done, or pre-existing that you know about?19:22
x58This documentation is outdated: https://jujucharms.com/docs/2.0/authors-implicit-relations (can't require juju-info...)19:22
marcoceppibdx: I'd check the mailing list, I'd just ask - I know  a few teams have done some simple stuff, but it's mostly just scripts19:22
bdxmarcoceppi, jrwren: also, upgrade-charm shouldn't be ran on `charm attach`, because we are only interfaceing to the charm store at that point right?19:23
marcoceppix58: I'm about to go offline, but if you don't get an answer in an hour I'll be back to take a look19:23
marcoceppibdx: it's not, but the operator i stold there's an upgrade available19:23
marcoceppibdx: charm attach -> juju upgrade-charm -> upgrade-charm hook run, new resource is available19:24
x58marcoceppi: Ok...19:24
marcoceppix58: I think that should be provides....19:24
x58Nope, all charms implicitly PROVIDE juju-info.19:25
marcoceppix58: is this a subordinate?19:25
x58Yes.19:25
marcoceppiokay, I'll be back soon19:25
x58It is not explicitly listed as a sub-ordinate though... because it may also be deployed stand-alone.19:25
x58marcoceppi: https://api.jujucharms.com/charmstore/v5/ntp-16/archive/metadata.yaml like this. requires juju-info.19:28
thumperx58: hey there, I think this week at the planning sprint we are discussing model level subordinates19:28
thumpercharms that should be on all machines19:29
thumperwhich match the need for things like ntp and other base machine tweaks19:29
bdxmarcoceppi: just to be clear, isn't `juju upgrade-charm` overkill if all i need is the new resource?19:30
bdxwhich I could get with `charm attach`19:30
bdxbleh19:30
bdx`juju attach`19:30
aisraelthumper: That would be a great feature.19:31
bdxthumper: +119:31
thumperthere is clearly a need for it19:31
x58thumper: That doesn't help me resolve the issue right now..19:32
x58thumper: I can't upload a charm that uses juju-info as the relationname under requires (like the ntp charm)19:33
x58and when I name it something else, add-relation fails with "no relation found"19:33
thumperx58: sure19:33
x58Also... the docs on the site are out of date... which as always is fantastic.19:33
x58What am I missing?19:34
thumperx58: I don't believe that the system supports a charm that is both a subordinate, and not a subordinate19:34
thumperI'm not sure why it is complaining about juju-info19:34
thumperI'm wondering if it is considered only available for subordinates19:35
thumper?19:35
thumperperhaps?19:35
x58charm push .19:35
x58ERROR charm "staticroutes" using a reserved relation name: "juju-info"19:35
thumperif you mark the charm as a subordinate, does it work?19:35
x58Now, if I change it to be subordinate... I will break existing users that are not using it as a subordinate when they upgrade...19:35
thumperah...19:36
thumperpoo19:36
thumperperhaps you need two charms?19:36
x58Yeah... no.19:36
x58I really don't want to maintain two charms.19:36
thumperx58: what is the intent of the juju-info relation?19:37
x58To be able to add a relationship so that it is subordinate when related to an existing charm.19:37
x58Without breaking existing users by removing the ability to just deploy staticroutes --to <host.19:38
thumperI get a strong feeling that this is not a supported use case19:38
thumperI don't think you are missing anything, I think that this use case just was never thought about19:39
thumperor it was, and explicitly not supported19:39
thumperbut I don't know which19:39
x58That'd be nice to have documented on https://jujucharms.com/docs/2.0/authors-implicit-relations19:39
kikox58, out of curiosity, what are you charming?19:39
x58as well as the fact that you can't name the relation "juju-info" like it shows in that example.19:39
x58kiko: adding staticroutes becaue MaaS doesn't provide a feature for us to add routes on a specific interface.19:40
x58We have 3 racks of Ceph nodes.19:40
x58THe backend cluster network is on a /64, I need to add a static route to a /52 on the interface for that backend cluster network19:40
x58so that backend cluster traffic goes over the right interface, instead of over the default route (which is the frontend cluster interface where clients communicate)19:41
kikox58, we are doing that work this cycle, fwiw -- why don't we work together to do that in MAAS instead?19:41
x58kiko: https://gitlab.com/bertjwregeer/juju_staticroutes/19:41
bdxx58: not sure if this is the best way, but what I use to do was just edit the maas dhcp conf19:41
x58kiko: Because I am already using it in production.19:41
kikox58, I see, it's complete already19:41
kikowell19:41
bdxx58: or dhcp template that maas uses19:41
x58Oh yeah... I am just trying to make it a sub-ordinate.19:41
kikoif it makes you feel any better, we're adding the functionality now19:41
kikobecause we're aware of that limitation19:42
x58bdx: No DHCP used for the IPv6 network...19:42
bdxoooh IPv6 .... nm19:42
x58bdx: As in the MaaS server doesn't even have an interface on that network.19:42
kikobdx, how would dhcp help with static routes, though?19:42
x58You can push more routes with DHCP19:42
bdxyeah19:42
kikointeresting19:42
bdxI still have an openstack with that hack19:42
bdxlol19:43
kikothe more general case of not-DHCP is the killer there of course19:43
kikoanyway19:43
x58I really wish two things: 1. Juniper would support RFC4191 and 2. Linux would accept /52 routes from router advertisements.19:43
bdxtotally19:43
thumperx58: how are you declaring the relation?19:43
x58thumper: juju add-relation ceph:juju-info staticroutes:system-host19:43
thumperx58: no, in the charm's metadata.yaml19:44
x58kiko: Basically on a subnet defined on a Fabric we would need the ability to specify extra routes that are added to the networking config when the host is brought up.19:44
kikox58, yeah, ivoks has been asking for that since forever, and it's now on the plan for 2.319:45
x58kiko: Also, please please please test that everything works with IPv6...19:46
tychicusI'm trying to get juju gui up and running, but it hang at "Connecting to the juju model"19:47
tychicuslooks like a websocket issue Uncaught DOMException: Failed to construct 'WebSocket': The URL '<no value>' is invalid.19:48
tychicusare there any docs that I can consult to help me resolve this issue?19:48
tychicusfollowing instructions from here https://jujucharms.com/docs/2.0/tut-google#use-juju%27s-gui19:50
tvansteenburghtychicus: you could try `juju upgrade-gui` in case it's a bug that's been fixed20:04
tychicusJuju GUI at version 2.2.220:06
tychicusif it helps it's the version that was automatically loaded when I ran juju bootstrap20:08
tvansteenburghtychicus: yeah looks like that's the latest20:09
tychicusany other things I can do to troubleshoot?20:10
tvansteenburghtychicus: hatch may be able to help you20:10
* hatch waves20:10
tychicushi hatch20:10
tychicushatch: what information do you need from me?20:11
hatchhey tychicus I hear you have an issue in the GUI?20:11
tychicuscorrect20:11
hatchI just joined, so I have no idea what's going on :)20:11
tychicusUncaught DOMException: Failed to construct 'WebSocket': The URL '<no value>' is invalid.20:12
hatchoh kay, that's a new one20:12
tychicusran juju bootstrap test-maas-controller test-maas —to=test-juju.maas20:12
hatchok and then to load the gui, `juju gui` }20:13
hatch?20:13
tychicusyep20:13
tychicusran juju gui --show-credentials20:13
hatchhmm20:14
tychicusbrowser renders "Connecting to the Juju model"20:14
hatchcan you try `juju upgrade-gui` ?20:14
hatchand then try again20:14
tychicusJuju GUI at version 2.2.220:14
hatchok give me a few minutes to dig into this20:15
tychicussure20:15
tychicusthanks20:15
hatchtychicus: oh, what browser?20:15
tychicushatch: tried FF 49.0.2, chrome 54.0.2840.87 (64-bit), and safari 10.0.1 (10602.2.14.0.7)20:16
hatchhah ok20:17
tychicussafari gives a divvernt error20:18
tychicusWrong url scheme for WebSocket and SyntaxError (DOM Exception 12): The string did not match the expected pattern.20:19
hatchyeah I think I know what might be causing the issue20:19
tychicusok20:19
hatchcould you open the browser console and copy the value in `juju_config` and pm me the values?20:19
tychicussure20:20
hatchthanks20:20
x58thumper: Looks like setting it as subordinate did the trick...20:22
x58thumper: Think the only users are internal to $WORK, I'll just make this breaking change.20:23
thumperhmm... the docs need to be more clear if juju-info is only available to subordinates20:24
thumperseems a bit weird to me20:24
x58Not the first time I've had issues with docs...20:26
bdxconcerning resources, is there a way to attach a specific revision of a resource?20:29
bdxsay if you wanted to roll back or something20:30
thumperbdx: I would say you should be able to, but I don't know they syntax20:33
lazyPowerbdx - doesn't appear to be the case when using resources from the charm store. juju deploy cs:~containers/kubernetes-e2e --resource e2e_amd64=e2e_amd64-0  -- but the --resource flag seems to assume its coming from local disk20:42
=== babbageclunkafk is now known as babbageclunk
bdxlazyPower: do you feel this is a functionality that should exist?20:58
bdxshould I create a bug/feature request against charmstore, or charmstore-client?20:58
lazyPowerbdx - i haven't tested this, but i think the way it would work is if you rolled back to a previous version of the charm... you would get the resource thats associated with that revision of the charm.21:02
lazyPowers/would work/does work.21:04
bdxI see21:04
rick_h___bdx: resources are revisioned just like charms and follow the released channels/etc. It should be possible.21:04
* rick_h___ goes to look for syntax21:04
bdxlazyPower: I dont see any mapping though .. take mattermost for example `charm show cs:~cmars/mattermost` and `charm show cs:~cmars/mattermost-16` both show rev 3 for the resource21:07
lazyPowerbdx - its entirely possible to use the same resource between two revisions of the charm21:07
bdxlazyPower: but the mapping that charmstore keeps21:08
lazyPowerbdx: it appears that its been the same resource since revision 8 of the charm21:09
lazyPowercharm show cs:~cmars/mattermost-8 resources21:09
lazyPoweranything  prior to that, no resource that i can see, has been associated with that charm release.21:09
bdxlazyPower: I see, thx21:15
=== rick_h___ is now known as rick_h
tychicushatch: sudo add-apt-repository ppa:juju/stable did the trick22:59
tychicusthanks again for the help22:59
hatchtychicus: glad to hear it, np22:59
tychicusnow to see if I can get ceph up and running :)23:00
hatchgood luck!23:05
tychicuswill juju show you all of the machines that you have commissioned in maas?23:14

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!