Ask Your Question
1

razor installation

asked 2014-04-17 03:42:10 -0500

liushan gravatar image

updated 2014-04-29 23:32:14 -0500

I have Puppet Enterprise 3.2.1 installed and im testing razor so that i can launch puppet enterprise in my company .

I have an issue please help me to fix it.

I used puppet modules to install razor which is as follows:

  1. puppet module install puppetlabs-razor
  2. chown -R puppet:puppet /etc/puppetlabs/puppet/modules
  3. puppet apply /etc/puppet/modules/razor/manifests/init.pp --verbose

                 works fine everything till this step.
    
  4. /opt/razor/bin/razor << ( but after installation i dont find razor in this location)

What am i missing here please guide me and ya my /etc/init.d do have a service named razor-server

Thanks in advance.

UPDATE AS OF 4/28/2014

Thanks for the reply .

This time im facing errors when i run the database migrate command The errors are shown bellow

jruby /opt/razor/bin/razor-admin -e production migrate-database

I, [2014-04-28T08:52:52.869000 #5096] INFO -- razor.sequel: (0.005000s) SET standardconformingstrings = ON

I, [2014-04-28T08:52:52.878000 #5096] INFO -- razor.sequel: (0.001000s) SET clientminmessages = 'WARNING'

I, [2014-04-28T08:52:52.963000 #5096] INFO -- razor.sequel: (0.082000s) SELECT version()

I, [2014-04-28T08:52:53.001000 #5096] INFO -- razor.sequel: (0.004000s) SELECT NULL AS "nil" FROM "schema_info" LIMIT 1

I, [2014-04-28T08:52:53.007000 #5096] INFO -- razor.sequel: (0.002000s) SELECT * FROM "schema_info" LIMIT 1

I, [2014-04-28T08:52:53.020000 #5096] INFO -- razor.sequel: (0.002000s) SELECT 1 AS "one" FROM "schema_info" LIMIT 1

I, [2014-04-28T08:52:53.028000 #5096] INFO -- razor.sequel: (0.001000s) SELECT count(*) AS "count" FROM "schema_info" LIMIT 1

I, [2014-04-28T08:52:53.034000 #5096] INFO -- razor.sequel: (0.001000s) SELECT "version" FROM "schema_info" LIMIT 1

I, [2014-04-28T08:52:53.064000 #5096] INFO -- razor.sequel: Begin applying migration version 10, direction: up I, [2014-04-28T08:52:53.078000 #5096] INFO -- razor.sequel: (0.001000s) BEGIN

E, [2014-04-28T08:52:53.110000 #5096] ERROR -- razor.sequel: Java::OrgPostgresqlUtil::PSQLException: ERROR: syntax error at or near "DEFERRABLE"

Position: 95: ALTER TABLE "policies" DROP CONSTRAINT "policiesrulenumberkey", ADD UNIQUE ("rulenumber") DEFERRABLE INITIALLY DEFERRED

I, [2014-04-28T08:52:53.139000 #5096] INFO -- razor.sequel: (0.001000s) ROLLBACK Sequel::DatabaseError: Java::OrgPostgresqlUtil::PSQLException: ERROR: syntax error at or near "DEFERRABLE" Position: 95

               raise_error at /opt/razor/vendor/bundle/jruby/1.9/gems/sequel-4.3.0/lib/sequel/database/misc.rb:402
                statement at /opt/razor/vendor/bundle/jruby/1.9/gems/sequel-4.3.0/lib/sequel/adapters/jdbc.rb:604
                  execute at /opt/razor/vendor/bundle/jruby/1.9/gems/sequel-4.3.0/lib/sequel/adapters/jdbc.rb:259
                     hold at /opt/razor/vendor/bundle/jruby/1.9/gems/sequel-4.3.0/lib/sequel/connection_pool/threaded.rb:91
              synchronize at /opt/razor/vendor/bundle/jruby/1.9/gems/sequel-4.3.0/lib/sequel/database/connecting.rb:234
                  execute at /opt/razor/vendor/bundle/jruby/1.9/gems/sequel-4.3.0/lib/sequel/adapters/jdbc.rb:258
              execute_ddl at /opt/razor/vendor/bundle/jruby/1.9/gems/sequel-4.3.0/lib/sequel/adapters/jdbc ...
(more)
edit retag flag offensive close merge delete

Comments

Can you please list out the sequence of steps that you are following to install Razor? This would help me reproduce the issue or identify the steps that may have been missed. Thanks

vishwanathj gravatar imagevishwanathj ( 2014-04-28 10:00:29 -0500 )edit

i have edited my previous answer to show the steps i have followed while installing razor server.

liushan gravatar imageliushan ( 2014-04-29 23:34:23 -0500 )edit
1

FYI==>The three steps to install razor and postgres is not required to be done in Agent VM. The modules are to be installed only in the Puppet master, the corresponding classes are to be set in console for that agent node and then execute puppet agent --test on agent node

vishwanathj gravatar imagevishwanathj ( 2014-05-02 20:41:26 -0500 )edit

What error are you seeing when you execute migrate-database command?

vishwanathj gravatar imagevishwanathj ( 2014-05-02 20:43:23 -0500 )edit

My Answer in " UPDATE AS OF 4/28/2014 " i have listed all errors , when i faced when i entered migrate command

liushan gravatar imageliushan ( 2014-05-03 23:36:50 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-04-17 10:19:50 -0500

vishwanathj gravatar image

updated 2014-04-22 02:15:53 -0500

You might find the material at the below links useful that might help answer questions you may have 1. https://forge.puppetlabs.com/puppetla... 2. https://github.com/puppetlabs/razor-s... 3. http://docs.puppetlabs.com/pe/latest/...

FYI: I installed razor module and only found 2 executables a) razor-admin, b)razor-binary-wrapper in /opt/razor/bin/ directory

UPDATE AS OF 4/22/2014

I was able to get razor server installed and running successfully on a CentOS 6.5 VM following the below steps. On Puppet Master node

  • Installed the razor module
  • Installed the postgresql module

From the Puppet Enterprise console, added the razor and postgresql classes to the dashboard. Next, I assigned, below classes to the razor node.

--postgresql::server
--puppetdb::database::postgresql_db(set the correct values for db name, password and username from console) --razor
--razor::libarchive

In the razor node VM, I executed "puppet agent --test" and verified that the razor-server was running

Next, In the razor node VM, create a copy of the file /opt/razor/config.yaml.sample as /opt/razor/config.yaml; edit the config.yaml file to ensure that the right values are set for the production:database_url field.

I executed the below commands to set the path

echo 'export TORQUEBOX_HOME=/opt/razor-torquebox' >> ~/.bashrc

echo 'export JBOSSHOME=$TORQUEBOXHOME/jboss' >> ~/.bashrc

echo 'export JRUBYHOME=$TORQUEBOXHOME/jruby' >> ~/.bashrc

echo 'export PATH=$JRUBY_HOME/bin:$PATH' >> ~/.bashrc

exec $SHELL -l

Next, load the database schema by executing command

jruby /opt/razor/bin/razor-admin -e production migrate-database

Next, I verified that the installation was correct by launching http://<razorserverip>:8080/api (ensure your firewall allows traffic on port 8080)

Try following the above steps and see if it works for you

edit flag offensive delete link more
0

answered 2014-04-20 09:17:17 -0500

liushan gravatar image

vishwanathj Thank you so much for the reply.

This time I was installing razor by the links you provided me , I chose source installation from the link https://github.com/puppetlabs/razor-s...

Everything was goin fine untill i reached to the step to bind address ie torquebox run --bind-address 0.0.0.0 ( after runing this command i get an error repeatedly ,as shown below)

18:55:00,053 ERROR [Razor.ScheduledJobs.IPMI] (jboss.deployment.unit."razor-server-knob.yml".jobschedulerWorker-2) failed scheduling IPMI poll: (NameError) uninitialized constant Razor::Data::Node

19:00:00,239 ERROR [Razor.ScheduledJobs.IPMI] (jboss.deployment.unit."razor-server-knob.yml".jobschedulerWorker-3) failed scheduling IPMI poll: (NameError) uninitialized constant Razor::Data::Node

19:05:00,077 ERROR [Razor.ScheduledJobs.IPMI] (jboss.deployment.unit."razor-server-knob.yml".jobschedulerWorker-1) failed scheduling IPMI poll: (NameError) uninitialized constant Razor::Data::Node

As you can see above the error is same but jobschedulerWorker-1 ,jobschedulerWorker-2 ,jobschedulerWorker-3 <<< keeps repeating and goes into a loop.

please let me know how to fix it and what is cause of this error. Anyone please help me to sort out this issue. Thanks in Advance

edit flag offensive delete link more

Comments

I used puppet to install a release version of razor and am seeing the same error messages as you in the server.log

vishwanathj gravatar imagevishwanathj ( 2014-04-22 00:46:54 -0500 )edit

Which version of Razor did you see this in?

smcclellan gravatar imagesmcclellan ( 2015-04-01 20:03:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-04-17 03:42:10 -0500

Seen: 5,463 times

Last updated: Apr 29 '14