On Sat, Mar 01, 2014 at 08:29:16AM +0900, John Mettraux wrote:
>
> On Fri, Feb 28, 2014 at 03:02:35PM -0800, Matthew York wrote:
> >
> > Thanks for the quick reply - I added some more detailed info here:
> > https://gist.github.com/stackdump/217b2c87f62540fa4807
> >
> > I didn't include the process that logs f:machine before the sequence, but
> > you can see the log entry just after the sequence begins running.
> >
> > The machine hash already contained a remote_id:
> >
> > 2014-02-28 19:20:26 Env: 5310bda1e1d14826e00000bc Thread: 22454140 -
> > Participants::Log: {"CREATING MACHINE"=>{"availability_zone"=>"nova",
> > "flags"=>{"migrate"=>true, "wipe"=>true}, "flavor_id"=>"18",
> > "image_id"=>"de0bf0b8-8f16-4e0e-bc23-cfc27c52283c",
> > "machine_id"=>"5310be96749f06d9ef000051", "name"=>"mlb14-goo-balancer4",
> > "puppet_role"=>"role::sdod::playerconnect",
> > "remote_id"=>"020235ef-9541-46b3-9f05-b1832daf440d",
> > "security_groups"=>["server.balancer"],
> > "services"=>{"playcore"=>{"balancer"=>{}}}, "state"=>"ECO_CREATED",
> > "tenant_name"=>"GPAD_SD1",
> > "user_data"=>"application=mlb14&environment=production
> > pe_eco_environment=ote
> > pe_eco_message_broker=eco-ote-messaging.eco.usw1.cld.scea.com",
> > "_id"=>"5310e13de1d1483dd90000c0"}, "ref"=>"log"}
>
> Hello Matt,
>
> I've updated the test/unit/ut_6_condition.rb with:
>
> ```ruby
> def test_unless
>
> assert_apply :unless => 'true == false'
> assert_skip :unless => 'false == false'
>
> assert_skip :unless => 'true'
> assert_skip :unless => '20235ef'
> assert_skip :unless => '020235ef'
> assert_skip :unless => '020235ef-9541-46b3-9f05-b1832daf440d'
> end
> ```
>
> and it fails with "020235ef".
>
> I have to fix that: https://github.com/jmettraux/ruote/issues/93
Ouch, it's tougher than I thought.
The ruby parser I use evalutes "020235ef" as *false*...
As a work around, I'd suggest to go with something like:
sequence :unless => "$f:x.y.z.remote_id is set"
My tests say that "020235ef is set" is considered true.
I consider closing the issue... Can't fix, I don't want to bother reporting
the issue upstream, RubyParser is pain (story too long).
Please try with the workaround.
Sorry about that.
John
--
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.