/srv/irclogs.ubuntu.com/2014/04/03/#juju.txt

davechen1ypaste.ubuntu.com00:00
ghartmannhttp://paste.ubuntu.com/7196567/00:00
davechen1yghartmann: ok, i'll log a bug00:01
davechen1yit will be related to your config00:01
davechen1ybackup .juju00:01
davechen1ydelete it00:01
davechen1yjuju init -w00:01
davechen1yand try again00:01
ghartmannerror: flag provided but not defined: -w00:02
ghartmannit seems that force is the only flag there00:03
davechen1ysorry, that has changed as well00:03
davechen1ythe whole thing might have changed to be juju generate-config00:03
davechen1yhttps://bugs.launchpad.net/juju-core/+bug/130166300:03
_mup_Bug #1301663: cmd/juju: panic during bootstrap <juju-core:Triaged> <https://launchpad.net/bugs/1301663>00:03
ghartmannah thanks00:04
davechen1yghartmann: with a fresh config00:05
davechen1ydoes the panic still happen ?00:05
davechen1yghartmann: what I would like to do is find the specific yaml stanza thta is causing the panic00:05
davechen1yso we can make a test case00:05
ghartmannI get ERROR environment has no access-key or secret-key00:06
ghartmannsorry it's on amazon provider00:07
davechen1yghartmann: hang on, you just said you were using local00:07
ghartmannok00:07
ghartmannit seems to work00:07
davechen1yok, so lets deal with these problems one at at time00:07
davechen1yghartmann: juju destroy-environment -y local00:08
davechen1ythen put the old .juju back00:08
davechen1yor just the local: stanza from your config00:08
davechen1yand see if it happens agian00:08
ghartmannI installed juju, ran init, switched to local, created the ssh keys and bootstrap00:08
ghartmannthis time I ran already had the sshkeys created, ran generate config, switched to local and bootrapped00:10
davechen1yghartmann: can you put your original .juju back and see what happens ?00:13
ghartmannI have removed it before00:14
ghartmannwhat I have noticed is that beforehand the ssh folder in .juju didn't have the keys there00:15
ghartmannand now it has00:15
ghartmannit seems that when the config is generated it copies the folder in00:15
davechen1yyes, i think it does that00:16
ghartmannso the problem seems to be related with the sequence00:16
ghartmannanyway it works now00:16
ghartmannI just need to configure the bridge and should be good to go00:16
ghartmannthanks !00:16
davechen1yok00:17
ghartmannby the way, to setup the bridge. is there a better way to expose lxc services to the internal lan ? I am going through setting up the bridge manually00:18
webbrandonif im gonna use maas for virtual machines and juju i have to install LXC on my MAAS server correct?  Not to familiar with this yet, but running lxc-create now for node, hope im on the right track00:58
Valduareinteresting00:59
davechen1ywebbrandon: false01:00
webbrandonwha, wha. damn. need to find some more straight forward docs01:02
davechen1ywebbrandon: if you want to use maas for virtual machines the way we deploy openstack is this01:02
davechen1y1. deploy maas controller01:03
davechen1y2. enroll all the machines with maas01:03
davechen1y3. deploy a juju environment on your maas cluster01:03
davechen1y4. use juju to deploy openstack01:03
davechen1yand scale out the various services like storage and compute to consume all the available macines on your maas cluster01:03
davechen1y5. optional, use juju to deploy environments on your openstack cloud01:04
davechen1ywebbrandon: you +could+ use maas and manually call add-machine to create virtual machines on those physical maas nodes01:06
davechen1ybut you'd probably find that the networking gets all screwed up01:06
Valduarehook failed : config changed   unexpected token near fi01:18
Valduareerr unexpected token 'fi'01:19
webbrandondavechen1y thank you01:20
davechen1yValduare: this is coming from your hook01:20
davechen1ywhich is written in bash01:20
davechen1ywhich has a syntax error01:21
davechen1ywin801:21
davechen1yhow many times am i going to do that today ?01:21
Valduareit didnt throw this error last time I did the same charm01:21
davechen1yValduare: that may be true, but that doesn't mean there isn't a syntax error01:21
Valduarehow do I find out which line from the logs01:22
Valduareoh it did tell me01:22
Valduareline 3301:22
Valduarelooking now01:22
Valduareok so how can I fix the syntax and re-try deploying01:23
davechen1yValduare: this is a local charm ?01:23
Valduaredo I use the juju tools and copy it locally?01:23
davechen1yValduare: this is a local charm ?01:24
Valduareya01:24
davechen1yjuju help upgrade-charm01:24
Valduarehttp://pastebin.com/83r1Uwn2 I dont see a syntax error on line 3301:28
lemaoOla. I see that subordinate services are used for things such as AWS ELB or RDS. What I don't understand is how can I model an RDS instance that can be used by a number of services01:28
Valduareah and oddly it just turned green all by itself01:41
=== vladk|offline is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
overm1ndmarcoceppi did I get some time to work on the wordpress charm?08:47
=== CyberJacob is now known as CyberJacob|Away
ghartmannis there a recommended way to setup lxc provider network as a bridge ?10:15
stubOnce a peer relation is joined, will a unit remain in it until the unit is destroyed? Even if it is the only unit in the service for a period of time?10:39
stubIt seems to be, but I'm unsure if that can be relied on10:40
stubIf it *can* be relied on, then I might be able to work around the split-brain problem in Bug #125848510:41
_mup_Bug #1258485: support leader election for charms <juju-core:Triaged> <postgresql (Juju Charms Collection):New> <https://launchpad.net/bugs/1258485>10:41
stub(if a unit joins a relation that has never had a leader, then unit 0 will become the leader even if it hasn't joined yet)10:42
stubno, that still fails in a pathalogical case (dropping unit 0 before the other units can see each other in the peer relation)10:46
lazyPowerstub: i'm not sure i understand the question12:22
lazyPowerare you asking if the peer relationship membership remains after the peer'ing units are destroyed?12:22
stubIt doesn't matter... but I was asking if it remained when all-but-one units were destroyed12:23
stubCreate a single unit service, the unit isn't in the peer relation. Add a new unit, both get added to the peer relation. Remove one unit, and the remaining unit remains in the peer relation.12:23
lazyPowerstub: its in the pool, but the hooks dont fire12:55
lazyPowerso yeah its still in the relationship, but wit only one unit, the hooks wont fire against themselves.12:55
=== vladk is now known as vladk|offline
bloodearnestis there documentation that lists what hooks are called in what order when?14:18
bloodearnestso juju upgrade-charm calls upgrade-charm and then config-changed?14:18
bloodearnestactually, that's the other way round I think - config then upgrade14:19
lazyPowerbloodearnest: you were right the first time14:20
lazyPowerupgrade-charm, *then* config-changed14:20
lazyPowerthen any peering hooks on peer-config-changed14:20
bloodearnestlazyPower: so, interesting question then:14:20
bloodearnestupgrade-charm deploys my new payload, and restarts the server. This fails because the config format has changed slightly, and the new code can't process the old config format, so the hook fails14:22
bloodearnestlazyPower: this is a "fat" charm, as currently being discussed on the ML14:22
lazyPowerbloodearnest: charms have to retain backwords compat, what you're prposing would fail charm store review14:23
lazyPowereven if the config value is not used, it should be marked in the config description as depreciated, and handled appropriately14:23
bloodearnestlazyPower: yeah, but it's never going in the charmstore...14:24
lazyPowerwait i may be goig overboard, the config of what?14:24
lazyPoweryou mean the charm config? or do you mean the service config?14:24
bloodearnestlazyPower: by config format I mean application config format, not charm config, which hasn't changed14:24
lazyPowerahhhh ok, sorry i went overboard :)14:24
bloodearnestheh14:24
lazyPowera bit preoccupied with my active sprint14:24
Valduaremorning14:24
bloodearnestso in this case, an app under rapid development, a config value changed from a list to a dict14:25
lazyPowerwell there are 2 things you can do. Either fully depreciate the old config of the application, and do a full upgrade with a backup of the environment dropped in /mnt, or have a precondition check with 2 paths to handle the application version, one for the old app + config, and one for the new app+config14:25
bloodearnestright14:25
lazyPowerthis is trivial when using config management solutions like ansible, you write 2 sep. roles and assign the role based on the predicate configuration value14:26
lazyPowerValduare: o/14:26
bloodearnestor just juju resolved, as the config-changed hook will fix everything :)14:26
bloodearnestlazyPower: am using ansible14:26
lazyPowerbloodearnest: i would suggest not restarting the service until config-changed has run then14:27
lazyPowerso it upgrades the app along with the configuration before the restart14:27
bloodearnestlazyPower: ah yes - that sounds better14:27
arosalesmarcoceppi: if you exited a relation gracefully would you see relation broken?14:37
arosalesor does one _always_ see relation broken and departed with gracefully severing a relation?14:37
marcoceppiarosales: yes, you'll always get a relation-broken event14:37
arosalesah ok14:37
arosalesmarcoceppi: thanks for the clearification14:37
arosalestvansteenburgh ^14:37
arosalestvansteenburgh: that was my misinterpretation14:38
bloodearnestlazyPower: turns out, that was exactly what I was doing, problem was the config-changed hook not doing *all* configs14:52
lazyPowerbloodearnest: but you have a clear path moving forward. *thumbsup*15:10
=== vladk|offline is now known as vladk
jcastrodoes anyone have time to review/fix up the issues with owncloud?15:23
tvansteenburghjcastro: is that something i can do?15:24
ValDuarewhat command removes a dead machine from juju15:25
tvansteenburghjuju destroy-machine <machine_num>15:26
jcastrotvansteenburgh, yeah but post-sugar15:27
jcastrowe also have seafile, which is apparently awesome: http://manage.jujucharms.com/~negronjl/precise/seafile15:28
ValDuaretvansteenburgh: that just puts it to life: dead   mode15:30
ValDuareim on manual provision15:30
tvansteenburghValDuare: ok sorry, i don't know anything about manual provisioning15:31
jcastrodoes remove-machine not work?15:40
ValDuarelet me see15:42
ValDuarenope15:42
jcastrowhat does juju say the status is of the machine in `juju status`?15:44
frankbanrbasak: I erroneously marked bug 1301464 as committed in quickstart, switched back to confirmed. could you please re-triage it? thanks16:10
_mup_Bug #1301464: The mega-watcher for machines does not include containers addresses <addressability> <api> <juju-gui> <juju-core:Fix Committed by wallyworld> <juju-core (Ubuntu):Triaged> <juju-quickstart (Ubuntu):Confirmed> <https://launchpad.net/bugs/1301464>16:10
rbasakfrankban: no problem. DOne.16:19
mbruzekHi #juju16:23
mbruzekquestion for you16:23
mbruzekAccording to the log config-get returns an int in scientific notation and that makes it hard to do math on the value.16:23
mbruzek2014-04-03 16:04:47 INFO config-changed ++ config-get upload-maxsize16:23
mbruzek2014-04-03 16:04:47 INFO config-changed + upload_maxsize=3e+0716:23
mbruzekIs config get supposed to return 3e+07 ?16:24
frankbanrbasak: thanks! also I have a question for you and jamespage: we have a branch introducing joyent support in quickstart, not yet landed. it's few code but it's also a nice new feature (for quickstart and juju-core 1.18 itself). Should we keep that out for now? I mean, until we fix the bug introduced by core changes and we rebuild the distro package? We'd like to include that, but if you prefer otherwise it's not a prob16:24
frankbanlem16:24
marcoceppimbruzek: not really, I've never seen this16:26
marcoceppimgz: have you seen juju truncate long numbers? ^^16:26
mbruzek30000000 is less than max int for 32 bit values, but in scientific notation I can not get bc to use it.16:27
tvansteenburghhere are my solutions: http://pastebin.ubuntu.com/7199425/16:28
mgzmarcoceppi: is that just the log though?16:28
rbasakfrankban: as you have probably guessed that branch would need a feature freeze exception. It's easiest for me if you don't land it and release without it.16:29
rbasakfrankban: the alternative would be for me to cherry-pick the specific fixes we need in a distro patch taken from bzr commits, without bumping the upstream version number.16:29
mbruzekmgz I don't think so, I get a syntax error when using bc and can repeat the syntax error when I use scientific notation16:30
rbasakfrankban: that's only slightly more work for me, if the number of commits I need to cherry-pick are small, and they all apply correctly without conflicts.16:30
frankbanrbasak: ack, so I mean, it's not possible to include both the new feature and the bug fix as part of that exception, correct?16:30
rbasakfrankban: if you want an exception, you only need it for the feature. Bugs don't need exceptions.16:31
rbasakfrankban: then we can land it all together. If you want to do it that way.16:31
rbasakfrankban: you'll need to get the exception approved in time though, and I assume the release team are pretty busy given how long it took them to approve the previous exception.16:31
rbasakfrankban: Laney also asked for more QA assurances for future exceptions, so we'll want to document that too. I can certainly prepare the proposed package first and put it in a PPA for testing.16:32
frankbanrbasak: OIC. so I guess we'll just release 1.3.1 with the bug fix. I believe it will be readu Mon or Tue16:33
rbasakfrankban: sounds good.16:33
marcoceppitvansteenburgh: <316:33
frankbanrbasak: it will include the bug fix for juju-core mega-watcher and the --ppa flag, for discriminating between distro and pypi packages. I planned to have a module including something like JUJU_CORE_SOURCE = 'ppa', what can be changed to 'distro' to switch defaults16:34
mgzmbruzek: I don't see any uses of float format verbs in our code. are you sure it's not specific to that charm?16:34
rbasakfrankban: that sounds great16:35
frankbanrbasak: cool thank you16:35
mbruzekmgz upload-maxsize:16:35
mbruzek    type: int16:35
mbruzek    default: 3000000016:35
mbruzek    description: "Maximum file size (in bytes) that users can upload into Sugar as attachments."16:35
rbasakfrankban: please just makes sure that it only includes bugfixes though, so that we don't find later that we have to ask for an exception16:35
mbruzekmgz I do not get that value as a number out of config-get16:36
frankbanrbasak: sure, just those two changes, no new features, just a new patch number version, sounds good?16:36
=== roadmr is now known as roadmr_afk
rbasakfrankban: sounds great :)16:36
=== roadmr_afk is now known as roadmr
marcoceppimgz: why not do smart filtering?16:42
marcoceppierr mbruzek ^^16:42
marcoceppimbruzek: like 30M for 30 Megabytes16:43
marcoceppi1G16:43
marcoceppietc16:43
mbruzekThe number has to be in bytes for the sugar config file, but in MB for the php file16:43
mbruzekSo either way I have to do math on it.16:43
marcoceppimbruzek: it'd be better to do MB from user input16:43
mbruzekI defaulted to the byte number that sugar admins would be used to16:44
marcoceppito bytes for sugar16:44
mbruzekI could also change it to a string16:44
mbruzekBut it is an int, and I thought that should work.16:44
mbruzeksugar admins are used to setting 3000000016:45
mgzmbruzek: to be clear, what does config-get in a hook return? a mangled version or the bytes?16:45
mbruzekmgz config-get returns with the scientific notation16:45
mgzyou should be able to reproduce with a stub charm then, and file a bug16:45
mbruzek2014-04-03 16:45:53 INFO config-changed ++ config-get upload-maxsize16:46
mbruzek2014-04-03 16:45:53 INFO config-changed + upload_maxsize=3e+0716:46
mbruzekagainst juju-core?16:46
mgzyes.16:47
mgza skeleton charm with config.yaml with one entry, a config-changed hook, and a tests/ script should reproduce16:47
=== lazyPower is now known as lazyPower-travel
dannfi've got some ARM64 vms, on which i'm trying to deploy with the manual provider.18:13
dannfbootstrap: done. juju-gui deployed to bootstrap node: done (and working)18:14
dannfbut i juju add-machined a couple other nodes and, while add-machine completes w/o error and the agent is running, juju status shows the nodes stuck in pending18:14
dannfmachine-0: 2014-04-03 18:14:16 WARNING juju.worker.instanceupdater updater.go:231 cannot get instance info for instance "manual:10.0.128.7": no instances found18:14
dannfis what debug-log shows18:15
=== CyberJacob|Away is now known as CyberJacob
webbrandonarrg I am having a hell of a time trying to get MAAS to act the way I want.18:21
webbrandonim done messing with it for now. Just have to spend out my behind to use service for now.18:22
webbrandonactually I am just going to follow marcoceppi tut.  Not what I want but I guess good for the interm of testing18:29
webbrandonnot tut - blog post18:29
xagaba_Any place to get info about net-ju ?18:49
bacsinzui: hey do you know who is working on the joyent support?  anyone that might currently be around?18:56
sinzuibac, bodie_ and wallyworld_  in #juju-dev18:56
bacthanks sinzui18:57
xagaba_It's possible to deploy juju in a couple of servers to use only LXC as cloud machines ?18:58
=== vladk is now known as vladk|offline
marcoceppixagaba_: yes, you can use deploy --to lxc:<machine-num>19:09
xagaba_marcoceppi: any place to get info about such deploy mode ?19:11
marcoceppixagaba_: https://juju.ubuntu.com/docs/charms-deploying.html#deploying-to-machines19:12
sarnoldcool!19:13
xagaba_marcoceppi: thanks, I take a look19:13
=== roadmr is now known as roadmr_afk
themonkwhat does it mean by "instance-state: missing" ?19:21
perrito666nessita: well? talk19:56
perrito666:p19:56
nessitahello everyone! my units are not moving from the pending state, log shows:19:56
nessita2014-04-03 19:54:54 ERROR juju.worker.uniter.charm git.go:211 git command failed: exec: "git": executable file not found in $PATH path: /var/lib/juju/agents/unit-solr-jetty-0/state/deployer/update-20140403-165454781105382 args: []string{"init"}19:56
nessitacomplete logs: https://pastebin.canonical.com/107753/19:56
nessitaI ssh'd into elasticsearch/0 and confirmed the unit can access the internet19:56
nessitaUntil yesterday I was running saucy with juju/stable + juju/devel PPA's19:57
nessitayesterday I upgraded to trusty19:57
nessitaand since the units were not starting, I cleaned up everything and retried19:57
nessitasame error19:57
nessitaany ideas? :-)19:58
=== roadmr_afk is now known as roadmr
=== sputnik1_ is now known as sputnik13net
themonkwhat does it mean by "instance-state: missing" ?21:12
=== tvansteenburgh is now known as tvan-afk
=== thumper is now known as thumper-gym
=== CyberJacob is now known as CyberJacob|Away

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