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

Re: Cartridge name not being identified



This is strange... when I look at a similar request in mine, --cart-name and --component-name do include the version ("php-5.3"). I'm wondering if this is a v1|v2 cart issue - or I mean, a mismatch between the node infrastructure and the cartridges you installed. What source did you install the node and the cartridges from?

BTW, you might want to show some of the cartridge manifest list in the mcollective.log (look for the response to a request "--with-descriptors"=>true) to see what the node is telling the broker about its cartridges.

----- Original Message -----
From: "Shiva Bhanujan" <sxb075 gmail com>
To: "Luke Meyer" <lmeyer redhat com>
Sent: Tuesday, July 30, 2013 1:30:19 PM
Subject: Re: Cartridge name not being identified


I cleared the broker-cache, and got a fresh run. The following logs, should probably give enough context? 



D, [2013-07-30T12:27:59.725541 #13135] DEBUG -- : openshift.rb:36:in `before_processing_hook' Changing working directory to /tmp 
I, [2013-07-30T12:27:59.726249 #13135] INFO -- : openshift.rb:59:in `cartridge_do_action' cartridge_do_action call / action: cartridge_do, agent=openshift, data={:cartridge=>"php", 
:action=>"configure", :args=> 
{"--with-app-uuid"=>"51f7f7996d57234528000027", 
"--with-app-name"=>"myphpapp", 
"--with-container-uuid"=>"51f7f7996d57234528000027", 
"--with-container-name"=>"myphpapp", 
"--with-namespace"=>"msgex", 
"--with-request-id"=>"1ce19981549cf51cf2ed95935d9f302b", 
"--cart-name"=>"php", 
"--component-name"=>"php", 
"--with-software-version"=>"5.3", 
"--cartridge-vendor"=>"redhat"}, 
:process_results=>true} 


I, [2013-07-30T12:27:59.726329 #13135] INFO -- : openshift.rb:60:in `cartridge_do_action' cartridge_do_action validation = php configure {"--with-app-uuid"=>"51f7f7996d57234528000027", "--with-app-name"=>"myphpapp", "--with-container-u 
uid"=>"51f7f7996d57234528000027", "--with-container-name"=>"myphpapp", "--with-namespace"=>"msgex", "--with-request-id"=>"1ce19981549cf51cf2ed95935d9f302b", "--cart-name"=>"php", "--component-name"=>"php", "--with-software-version"=>"5. 
3", "--cartridge-vendor"=>"redhat"} 
I, [2013-07-30T12:27:59.726637 #13135] INFO -- : openshift.rb:158:in `execute_action' Executing action [configure] using method oo_configure with args [{"--with-app-uuid"=>"51f7f7996d57234528000027", "--with-app-name"=>"myphpapp", "--w 
ith-container-uuid"=>"51f7f7996d57234528000027", "--with-container-name"=>"myphpapp", "--with-namespace"=>"msgex", "--with-request-id"=>"1ce19981549cf51cf2ed95935d9f302b", "--cart-name"=>"php", "--component-name"=>"php", "--with-softwar 
e-version"=>"5.3", "--cartridge-vendor"=>"redhat"}] 
E, [2013-07-30T12:27:59.727119 #13135] ERROR -- : openshift.rb:290:in `rescue in with_container_from_args' CLIENT_ERROR: Unexpected error: Invalid cartridge identifier 'php': expected name-version 
E, [2013-07-30T12:27:59.727175 #13135] ERROR -- : openshift.rb:291:in `rescue in with_container_from_args' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.12.4/lib/openshift-origin-node/model/v2_cart_model.rb:121:in `ma 
p_cartridge_name' 
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.12.4/lib/openshift-origin-node/model/v2_cart_model.rb:246:in `configure' 
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.12.4/lib/openshift-origin-node/model/application_container_ext/cartridge_actions.rb:18:in `configure' 
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:704:in `block in oo_configure' 
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:285:in `with_container_from_args' 
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:703:in `oo_configure' 
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:163:in `execute_action' 
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:131:in `cartridge_do_action' 
/opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/agent.rb:86:in `handlemsg' 
/opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:126:in `block (2 levels) in dispatch' 
/opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' 
/opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:125:in `block in dispatch' 
I, [2013-07-30T12:27:59.727228 #13135] INFO -- : openshift.rb:173:in `execute_action' Finished executing action [configure] (-1) 
I, [2013-07-30T12:27:59.727287 #13135] INFO -- : openshift.rb:139:in `cartridge_do_action' cartridge_do_action failed (-1) 
------ 
CLIENT_ERROR: Unexpected error: Invalid cartridge identifier 'php': expected name-version 
------) 






I'm going to try to install the broker again, if there is some differences in the .rpm files that are being installed. 


In the meantime, the name-version thing isn't something that I understand. Is the cartridge-name supposed to have a -version, or is this some config issue? 


Regards, 
Shiva 





On Tue, Jul 30, 2013 at 7:19 AM, Luke Meyer < lmeyer redhat com > wrote: 


Hmmm... not much to go on, unless someone has seen this exact problem before. Certainly doesn't look familiar to me; seems to be related to requested cartridge names but no idea how it got that way. I think you may have snipped too much from the mcollective log; there should be a lot of information before the output telling us what parameters it was trying to process. Maybe attach or pastebin the entire logs? 

You also may want to try clearing the broker's cache (including cartridge cache) before getting those logs. "oo-admin-broker-cache --clear" Then node logs would also show what cartridges the node is reporting. 

BTW there's no preference for nodes... could as easily be either node that gets a request for cartridge list or new gear creation, assuming both are on mcollective. 


----- Original Message ----- 
From: "Shiva Bhanujan" < sxb075 gmail com > 


To: "Luke Meyer" < lmeyer redhat com > 
Cc: dev lists openshift redhat com 
Sent: Monday, July 29, 2013 9:49:47 PM 
Subject: Re: Cartridge name not being identified 


sorry, forgot to add the errors from /var/log/mcollective-server.log. 



E, [2013-07-29T20:17:41.115387 #1966] ERROR -- : openshift.rb:290:in `rescue in with_container_from_args' CLIENT_ERROR: Unexpected error: Invalid cartridge identifier 'diy': expected name-version 


<<...snip...>> 



I, [2013-07-29T20:17:41.115496 #1966] INFO -- : openshift.rb:173:in `execute_action' Finished executing action [configure] (-1) 
I, [2013-07-29T20:17:41.115551 #1966] INFO -- : openshift.rb:139:in `cartridge_do_action' cartridge_do_action failed (-1) 
------ 
CLIENT_ERROR: Unexpected error: Invalid cartridge identifier 'diy': expected name-version 
------) 




is there some internal name that isn't mapping correctly to what is being displayed? 


Regards, 
Shiva 











On Mon, Jul 29, 2013 at 6:47 PM, Shiva Bhanujan < sxb075 gmail com > wrote: 



Here are the errors - 


node1 - /var/log/openshift/node/platform-trace.log 




July 29 20:17:40 INFO oo_spawn buffer(10/) Command failed (null):9 


July 29 20:17:40 INFO oo_spawn buffer(10/) RTNETLINK answers: Invalid argument 


July 29 20:17:40 INFO oo_spawn buffer(10/) We have an error talking to the kernel 




node1 - /var/log/openshift/node/platform.log 



July 29 19:58:22 ERROR Unexpected error during configure: Invalid cartridge identifier 'nodejs': expected name-version (RuntimeError) 





July 29 20:17:41 ERROR Unexpected error during configure: Invalid cartridge identifier 'diy': expected name-version (RuntimeError) 


Seems like all requests go to node1, so no errors on node2. 


Do we have to have 'version' as a suffix? that's one issue. The other apparently are the ones from platform-trace.log. 


anything else that I should look at? 


Regards, 
Shiva 









On Mon, Jul 29, 2013 at 6:25 PM, Luke Meyer < lmeyer redhat com > wrote: 


The error seems to be coming from the node, so check the node logs. Start with /var/log/mcollective.log and /var/log/openshift/node/* - "invalid exit code" essentially just means that the answer coming back from the node indicated a problem. 



----- Original Message ----- 
From: "Shiva Bhanujan" < sxb075 gmail com > 
To: dev lists openshift redhat com 
Sent: Monday, July 29, 2013 9:16:59 PM 
Subject: Cartridge name not being identified 



Hello, 


I've got a list of cartridges, and am trying to create an app. However, it fails because of a 'node failure'. 



[root client ~]# rhc cartridges 
nodejs Node.js 0.10 web 
php PHP 5.3 web 
diy Do-It-Yourself 0.1 web 
cron Cron 1.4 addon 


Note: Web cartridges can only be added to new applications. 
[root client ~]# rhc app create myphpapp php 
Application Options 
------------------- 
Namespace: msgex 
Cartridges: php 
Gear Size: default 
Scaling: no 


Creating application 'myphpapp' ... 
Unable to complete the requested operation due to: Node execution failure 
(invalid exit code from node). If the problem persists please contact Red Hat 
support.. 
Reference ID: 94fdbe4384c7e6375afba7e8c9a9a44b 
[root client ~]# 


The cartridges are installed just fine on the 2 nodes, and are also being identified on the client using RHC. 




the only error I get is in /var/log/openshift/broker/production.log and /var/log/openshift/broker/user_action.log 


Parameters: {"name"=>"myphpapp", "cartridges"=>["php"], "domain_id"=>"msgex"}Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support. 






FAILURE DATE=2013-07-29 TIME=20:11:10 ACTION=ADD_APPLICATION REQ_ID=94fdbe4384c7e6375afba7e8c9a9a44b USER_ID=51f6ee7c6d5723ed60000001 LOGIN=openshift DOMAIN=msgex Unable to complete the requested operation due to: Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support.. 
Reference ID: 94fdbe4384c7e6375afba7e8c9a9a44b 



/var/log/openshift/broker/httpd/error_log doesn't seem to have any other errors related to this issue. 


any help/pointers? 






Regards, 
Shiva 




_______________________________________________ 
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]