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

RE: OpenShift Origin Error in ec2 using puppet script



Oops..Apologize ..missed the attachments.

 

Shabna

 

From: Madathilthattantav, S.
Sent: Wednesday, December 04, 2013 12:54 PM
To: 'dev lists openshift redhat com'; users lists openshift redhat com
Cc: 'hripps redhat com'; 'kraman redhat com'; 'mlamouri redhat com'
Subject: OpenShift Origin Error in ec2 using puppet script

 

Hi

 

I am trying to setup OpenShift Origin in Fedora –ec2 instance.But stuck with some errors.These are the steps  I am following :

 

1.launch a Fedor ami (ami-b22e5cdb )instance in ec2 (medium ,volume 20gb ) and associated the right security group

2.Associate an elastic address.

3.Enabled ssh access using root.

4.Following step by step instruction on http://openshift.github.io/documentation/oo_deployment_guide_puppet.html#configuring-separate-hosts-for-broker-node [Onebroker +One Node ]

 

a.       yum install -y puppet facter tar

b.      mkdir -p /etc/puppet/modules

c.       cd /etc/puppet/modules

d.      yum install -y bind

#Using example.com as the cloud domain

e.      /usr/sbin/dnssec-keygen -a HMAC-MD5 -b 512 -n USER -r /dev/urandom -K /var/named example.com

f.        cat /var/named/Kexample.com.*.key  | awk '{print $8}'

g.       echo "broker.example.com" > /etc/hostname

hostname broker.example.com

#Configure the configure_origin.pp (attached)

h.      puppet apply --verbose configure_origin.pp

i.         oo-register-dns --domain example.com --with-node-hostname broker --with-node-ip <broker IP public ip>

j.        reboot

 

 

Not Sure what I am missing here-Please share some pointers .I am sure this would have been tried and tested

oo-accept-broker fails with the following error:

 

FAIL: Did not get expected HTTP 200 response from https://localhost/broker/rest/api

FAIL: Did not get expected HTTP 200 response from https://localhost/broker/rest/cartridges

FAIL: Did not get expected HTTP 401 response from https://localhost/broker/rest/user

FAIL: Did not get expected HTTP 401 response from https://localhost/broker/rest/domains

 

 

I was able to get OSE in aws using the bash script without much hassle.Have a critical requirement to try some deployment in Origin but this is acting a showstopper

Thanks for the support.

 

 

Thanks

Shabna




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. .
______________________________________________________________________________________

www.accenture.com

Attachment: configure_origin.pp
Description: configure_origin.pp

Script Errors :
*******************************

Error: Could not find command '/usr/bin/htpasswd'
Error: /Stage[main]/Openshift_origin::Plugins::Auth::Htpasswd/Exec[set first OpenShift user password]/returns: change from notrun to 0 failed:
 Could not find command '/usr/bin/htpasswd'
 
 
 
Error: Could not enable NetworkManager-wait-online: Execution of '/sbin/chkconfig NetworkManager-wait-online on' returned 1: 
error reading information on service NetworkManager-wait-online: No such file or directory

Error: /Stage[main]/Openshift_origin/Service[NetworkManager-wait-online]/enable: change from false to true failed: Could not enable
 NetworkManager-wait-online: Execution of '/sbin/chkconfig NetworkManager-wait-online on' returned 1: error reading information on 
 service NetworkManager-wait-online: No such file or directory

 **********************************************
 
 [root ip-10-181-162-83 ~]# oo-accept-broker -v
INFO: Broker package is: openshift-origin-broker
INFO: checking packages
INFO: checking package rubygem-openshift-origin-common
INFO: checking package rubygem-openshift-origin-controller
INFO: checking package openshift-origin-broker
INFO: checking package rubygem-rails
INFO: checking package rubygem-passenger
INFO: checking package rubygems
INFO: checking ruby requirements
INFO: checking ruby requirements for openshift-origin-controller
INFO: checking ruby requirements for config/application
INFO: checking that selinux modules are loaded
NOTICE: SELinux is Enforcing
NOTICE: SELinux is  Enforcing
INFO: SELinux boolean httpd_execmem is enabled
INFO: SELinux boolean httpd_unified is enabled
INFO: SELinux boolean httpd_can_network_connect is enabled
INFO: SELinux boolean httpd_can_network_relay is enabled
INFO: SELinux boolean httpd_run_stickshift is enabled
INFO: SELinux boolean allow_ypbind is enabled
INFO: checking firewall settings
INFO: checking mongo datastore configuration
INFO: Datastore Host: broker.example.com
INFO: Datastore Port: 27017
INFO: Datastore User: openshift
INFO: Datastore SSL: false
INFO: Datastore Password has been set to non-default
INFO: Datastore DB Name: openshift_broker
INFO: Datastore: mongo db service is remote
INFO: checking mongo db login access
INFO: mongo db login successful: broker.example.com:27017/openshift_broker --username openshift
INFO: checking services
INFO: checking cloud user authentication
INFO: auth plugin = OpenShift::RemoteUserAuthService
INFO: auth plugin: OpenShift::RemoteUserAuthService
INFO: checking remote-user auth configuration
INFO: Auth trusted header: REMOTE_USER
INFO: Auth passthrough is enabled for OpenShift services
FAIL: Did not get expected HTTP 200 response from https://localhost/broker/rest/api
FAIL: Did not get expected HTTP 200 response from https://localhost/broker/rest/cartridges
FAIL: Did not get expected HTTP 401 response from https://localhost/broker/rest/user
FAIL: Did not get expected HTTP 401 response from https://localhost/broker/rest/domains
INFO: checking dynamic dns plugin
INFO: dynamic dns plugin = OpenShift::NsupdatePlugin
INFO: checking bind dns plugin configuration
INFO: DNS Server: 10.181.162.83
INFO: DNS Port: 53
INFO: DNS Zone: example.com
INFO: DNS Domain Suffix: example.com
INFO: DNS Update Auth: key
INFO: DNS Key Name: example.com
INFO: DNS Key Value: *****
INFO: adding txt record named testrecord.example.com to server 10.181.162.83: this_is_a_test
INFO: txt record successfully added
INFO: deleteing txt record named testrecord.example.com to server 10.181.162.83:
INFO: txt record successfully deleted
INFO: checking messaging configuration
INFO: messaging plugin = OpenShift::MCollectiveApplicationContainerProxy
4 ERRORS

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