I struggle to add OpenStack compute resource to Foreman.
Python scrips can easily get a tenants list from API, but Foreman gives me "end
of file reached (EOFError)".
Log:
>
> Processing by ComputeResourcesController#test_connection as /
> Parameters: {"utf8"=>"â",
> "authenticity_token"=>"XQj2Worr/hNkTe9aPCsESDWUqrBGsc1ND4MgK3p3Yjg=",
> "compute_resource"=>{"name"=>" poc", "provider"=>"Openstack",
> "description"=>"", "url"=>"https://***:5000/v2.0/tokens", "user"=>"***",
> "password"=>"[FILTERED]", "organization_ids"=>["", "1"]}, "cr_id"=>"null"}
> CR_ID IS null
> String does not start with the prefix 'encrypted-', so
> Foreman::Model::Openstack poc was not decrypted
> String does not start with the prefix 'encrypted-', so
> Foreman::Model::Openstack poc was not decrypted
> String does not start with the prefix 'encrypted-', so
> Foreman::Model::Openstack poc was not decrypted
> String does not start with the prefix 'encrypted-', so
> Foreman::Model::Openstack poc was not decrypted
> String does not start with the prefix 'encrypted-', so
> Foreman::Model::Openstack poc was not decrypted
> Rendered compute_resources/form/_openstack.html.erb (31070.0ms)
> Rendered taxonomies/_loc_org_tabs.html.erb (7.9ms)
> Rendered compute_resources/_form.html.erb (31095.6ms)
> Completed 200 OK in 65381ms (Views: 31098.2ms | ActiveRecord: 6.3ms)
Before that i used another openstak provider, and foreman was able finally
to get list of tenants, but when i click "Submit" it is freezing on setting
KeyPair.
What are formal requirements for Openstack provider for Foreman?
PS
Fog version: ruby193-rubygem-fog.noarch 1.21.0-2.el6
···
On Friday, July 18, 2014 5:38:35 PM UTC+2, Iakov Gan wrote:
>
> Hi,
>
> I struggle to add OpenStack compute resource to Foreman.
> Python scrips can easily get a tenants list from API, but Foreman gives me
> "end of file reached (EOFError)".
>
> Log:
>>
>> Processing by ComputeResourcesController#test_connection as */*
>> Parameters: {"utf8"=>"â",
>> "authenticity_token"=>"XQj2Worr/hNkTe9aPCsESDWUqrBGsc1ND4MgK3p3Yjg=",
>> "compute_resource"=>{"name"=>" poc", "provider"=>"Openstack",
>> "description"=>"", "url"=>"https://***:5000/v2.0/tokens", "user"=>"***",
>> "password"=>"[FILTERED]", "organization_ids"=>["", "1"]}, "cr_id"=>"null"}
>> CR_ID IS null
>> String does not start with the prefix 'encrypted-', so
>> Foreman::Model::Openstack poc was not decrypted
>> String does not start with the prefix 'encrypted-', so
>> Foreman::Model::Openstack poc was not decrypted
>> String does not start with the prefix 'encrypted-', so
>> Foreman::Model::Openstack poc was not decrypted
>> String does not start with the prefix 'encrypted-', so
>> Foreman::Model::Openstack poc was not decrypted
>> String does not start with the prefix 'encrypted-', so
>> Foreman::Model::Openstack poc was not decrypted
>> Rendered compute_resources/form/_openstack.html.erb (31070.0ms)
>> Rendered taxonomies/_loc_org_tabs.html.erb (7.9ms)
>> Rendered compute_resources/_form.html.erb (31095.6ms)
>> Completed 200 OK in 65381ms (Views: 31098.2ms | ActiveRecord: 6.3ms)
>
>
>
> Before that i used another openstak provider, and foreman was able finally
> to get list of tenants, but when i click "Submit" it is freezing on setting
> KeyPair.
>
> What are formal requirements for Openstack provider for Foreman?
>
> Foreman 1.5.1
> OpenStack API 2.0
>
> Iakov
>
> Before that i used another openstak provider, and foreman was able finally
> to get list of tenants, but when i click "Submit" it is freezing on setting
> KeyPair.
Try to delete the compute resource and create another one so you are
sure that your ssh keys are re-deployed.
> What are formal requirements for Openstack provider for Foreman?
Provider A:
I can not create openstack compute resource: I get error 'EOF' on the
loading of the list of tenants. Looks like an issue of foreman side. Using
a simple Python code i can easily get list of tenants.
Provider B:
I can not create openstack compute resource: I get the list of tenants. But
when i click "submit", foreman freezes, and i have to restart it. When i
looked through code, i found that it is freezing on KeyPair. Looks like an
issue on their side, but i can not prove it.
What can i ask from Cloud Provider, who does not know anything about
Foreman?
Need help.
···
On Monday, July 21, 2014 11:48:04 AM UTC+2, Lukas Zapletal wrote:
>
> > Before that i used another openstak provider, and foreman was able
> finally
> > to get list of tenants, but when i click "Submit" it is freezing on
> setting
> > KeyPair.
>
> Try to delete the compute resource and create another one so you are
> sure that your ssh keys are re-deployed.
>
> > What are formal requirements for Openstack provider for Foreman?
>
> We don't have any documented...
>
> http://theforeman.org/manuals/1.5/#5.2.6OpenStackNotes
>
> This should work
>
> --
> Later,
> Lukas #lzap Zapletal
>
I will check if is not freezing. May be i was impatient. Thanks.
url = "#{API_URL}:5000/v2.0/tokens"
(Works ok for my python scripts, so guess it is ok)
···
On Monday, July 21, 2014 7:07:21 PM UTC+2, Lukas Zapletal wrote:
>
> Hey,
>
> Foreman usually does not freeze, tail your production.log and hold on
> for 10 minutes, send the output.
>
> Also what form do you enter your OpenStack URL? There are lots of APIs
> and one can provide wrong URL. It happened to me as well.
>
> --
> Later,
> Lukas #lzap Zapletal
>