[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Openshift Puppet Deployment



Hi there--

On Jan 29, 2014, at 2:42, liaabi <liaa_4all yahoo com> wrote:

Hey again,

Can anyone look into this further? I would really appreciate a solution.
Thanks for your time!

Haven't forgotten about this issue. We are in the process of putting together some more fixes for the puppet module, and I'd like to address this issue in the same update.

Having said that, is there any particular reason that you are using the puppet script directly, instead of using install.openshift.com? If the installer is missing your use case, I'd like to know what it is so that I can put it on the oo-install backlog.

I know that having you use oo-install doesn't solve this bug, but if you are pressed for time then the installer may be useful to you.



On Tuesday, January 28, 2014 12:22 PM, liaabi <liaa_4all yahoo com> wrote:
Thanks Harrison,

I actually installed on a fresh VM so I did not have any earlier version installed.
Uninstalling and reinstalling still gives me version 
/etc/puppet/modules
└── openshift-openshift_origin (v3.0.1)
Is that correct?
Error still occurs...




On Tuesday, January 28, 2014 12:02 PM, Harrison Ripps <hripps redhat com> wrote:
Hey there--
Please manually uninstall the puppet module and then reinstall it; the version number is the same so you won't be able to pick up the fix otherwise.

Thanks,
Harrison

On Jan 28, 2014, at 4:28, liaabi <liaa_4all yahoo com> wrote:

 Bad news is I get the same error...
 Error: exception object expected at /etc/puppet/modules/openshift_origin/manifests/role.pp:66


On Tuesday, January 28, 2014 9:59 AM, liaabi <liaa_4all yahoo com> wrote:
Thanks a lot guys!
I can confirm I have v 3.0.1 of the openshift module installed and I did run puppet in verbose mode :)
I will try it out with the new version of the puppet module :)
Regards,





On Tuesday, January 28, 2014 12:13 AM, Aaron Knister <aaron knister gmail com> wrote:
You're welcome. I'm glad I could help :) Thanks for accepting the pull request.


On Mon, Jan 27, 2014 at 5:37 PM, N. Harrison Ripps <nhr redhat com> wrote:

On Jan 27, 2014, at 17:24 , Aaron Knister <aaron knister gmail com> wrote:

> Pull request created: https://github.com/openshift/puppet-openshift_origin/pull/151

Thanks again; I'll update the puppet module at puppet labs; should be done within the next ~30 minutes.

> On Mon, Jan 27, 2014 at 4:09 PM, Aaron Knister <aaron knister gmail com> wrote:
> Sure! I'll create a pull request shortly.
>
>
> On Mon, Jan 27, 2014 at 3:56 PM, N. Harrison Ripps <nhr redhat com> wrote:
>
> On Jan 27, 2014, at 15:34 , Aaron Knister <aaron knister gmail com> wrote:
>
> > This bit me this morning. The ensure_resource is triggering a puppet bug that's masking the real error. See this puppet bug: https://projects.puppetlabs.com/issues/22829.
> >
> > I changed the ensure_resource to a good old fashioned resource declaration and found the error in  plugins/auth/kerberos.pp on line 75. There's a comma missing after the require parameter.
>
> Great find, Aaron -- thanks! Do you want to put up a pull request for the fix? If not, let me know and I'll put one together.
>
> >
> > -Aaron
> >
> >
> > On Mon, Jan 27, 2014 at 9:47 AM, N. Harrison Ripps <nhr redhat com> wrote:
> >
> > On Jan 27, 2014, at 9:38 , liaabi <liaa_4all yahoo com> wrote:
> >
> > > Thanks, I did give it a shot.
> > > But I get the same error :(
> > >
> > > Also I should mention that my script runs smoothly when I don't specify those 2 broker_conf_auth_*_key parameters.
> >
> > Okay, my next suggestion is to run puppet in verbose mode so that we can see what's going on with that error in more detail:
> >
> > puppet apply --verbose <your config file>
> >
> > By the way, if you run `puppet module list`, can you confirm that you have v 3.0.1 of the openshift module installed?
> >
> > >
> > >
> > > On Monday, January 27, 2014 3:09 PM, N. Harrison Ripps <nhr redhat com> wrote:
> > > Thanks for passing that along.
> > >
> > > On Jan 27, 2014, at 8:54 , liaabi <liaa_4all yahoo com> wrote:
> > >
> > > >
> > > > Hi,
> > > > Thanks for the reply.
> > > > This is my configuration file (with the %var% being replaced)
> > > >
> > > >
> > > > class { 'openshift_origin' :
> > > >  # Components to install on this host:
> > > >  roles                =>=> ['broker','named','activemq','datastore','node'],
> > > >  # The FQDNs of the OpenShift component hosts; for a single-host
> > > >  # system, make all values identical.
> > > >  broker_hostname            => 'oos.%DOMAIN%',
> > > >  node_hostname              => 'oos.%DOMAIN%',
> > > >  named_hostname            => 'oos.%DOMAIN%',
> > > >  datastore_hostname        => 'oos.%DOMAIN%',
> > > >  activemq_hostname          => 'oos.%DOMAIN%',
> > >
> > > Based on what oo-install sets for puppet configuration, you are missing two parameters:
> > >
> > > * broker_ip_addr
> > > * named_ip_addr
> > >
> > > Set them and give it a shot.
> > >
> > >
> > > >
> > > >  node_unmanaged_users      => ['root'],
> > > >
> > > >  # BIND / named config
> > > >  # This is the key for updating the OpenShift BIND server
> > > >  bind_key                  => '%TSIG_KEY%',
> > > >  # The domain under which applications should be created.
> > > >  domain                    => '%DOMAIN%',
> > > >  # Apps would be named <app>-<namespace>.%DOMAIN%
> > > >  # This also creates hostnames for local components under our domain
> > > >  register_host_with_named  => true,
> > > >  # Forward requests for other domains (to Google by default)
> > > >  conf_named_upstream_dns    => ['8.8.8.8'],
> > > >  #Use the nsupdate broker plugin to register application
> > > >  broker_dns_plugin          => 'nsupdate',
> > > >
> > > >  # Auth OpenShift users created with htpasswd tool in /etc/openshift/htpasswd
> > > >  broker_auth_plugin        => 'mongo',
> > > >
> > > >  # To enable installing the Jenkins cartridge:
> > > >  install_method            => 'yum',
> > > >  jenkins_repo_base          => 'http://pkg.jenkins-ci.org/redhat',
> > > >
> > > >  # Username and password for initial openshift user
> > > >  openshift_user1            => 'openshift',
> > > >  openshift_password1        => '%openshiftpass%',
> > > >  # administrative user for mongodb
> > > >  mongodb_admin_user        => 'admin',
> > > >  mongodb_admin_password    => '%mongoadmin%',
> > > >
> > > >  #Username and password for the broker to connect to the database
> > > >  mongodb_broker_user        => 'mongo',
> > > >  mongodb_broker_password    => '%mongobroker%',
> > > >
> > > >  #Enable development mode for more verbose logs
> > > >  development_mode          => true,
> > > >
> > > >  #Configure the gear sizes to be used
> > > >  conf_valid_gear_sizes      => [small, medium, large],
> > > >
> > > >  conf_broker_auth_salt        => '%authsalt%',
> > > >
> > > >  conf_broker_auth_public_key    => "/etc/openshift/server_pub.pem",
> > > >
> > > >  conf_broker_auth_private_key    => "/etc/openshift/server_priv.pem",
> > > >
> > > >  conf_broker_auth_key_password    => '%authkeypass%',
> > > >
> > > >  conf_broker_session_secret  => '%BROKER_SESSION_SECRET%',
> > > >
> > > >  conf_console_session_secret => '%CONSOLE_SESSION_SECRET%',
> > > >
> > > >  #MCollective login for messaging
> > > >
> > > >  mcollective_user    => 'msgopenshift',
> > > >
> > > >  mcollective_password        => '%mcollectivepass%'
> > > >
> > > > }
> > > >
> > > >
> > > >
> > > > On Monday, January 27, 2014 2:45 PM, N. Harrison Ripps <nhr redhat com> wrote:
> > > > Hi there--
> > > >
> > > > On Jan 27, 2014, at 3:52 , liaabi <liaa_4all yahoo com> wrote:
> > > >
> > > > > Hey everyone,
> > > > >
> > > > > I am trying to configure the parameters for broker authentication for openshift.
> > > > > For some reason, I am not able to specify conf_broker_auth_public_key and conf_broker_auth_private_key in the puppet script. I get an exception:
> > > > > Error: exception object expected at /etc/puppet/modules/openshift_origin/manifests/role.pp:66 on node [my node address here]
> > > > > Wrapped exception:
> > > > > exception object expected
> > > > >
> > > > > Can anyone help? What value should these parameters take? Why are they not allowed in the puppet script?
> > > >
> > > > Can you share your puppet config file?
> > > >
> > > >
> > > > > Thanks
> > > >
> > > > > _______________________________________________
> > > > > dev mailing list
> > > > > dev lists openshift redhat com
> > > > > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > dev mailing list
> > > > dev lists openshift redhat com
> > > > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
> > >
> > >
> >
> >
> > _______________________________________________
> > dev mailing list
> > dev lists openshift redhat com
> > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
> >
>
>
>









_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev


_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]