Re: Jenkins image build step stucks on Git cloning step

2017-11-04 Thread Ben Parees
On Sat, Nov 4, 2017 at 8:32 AM, Tien Hung Nguyen 
wrote:

> Thank you for your response.
>
> The problem was because I was using the internet of my Samsung Smartphone
> via Hotspot. Please, could you tell me how I can use OpenShift using the
> internet of my Smartphone?
>

You're using a hotspot to give the cluster internet access?

Or you're accessing an existing cluster by using a hotspot to give your
client machine connectivity to reach the cluster?

If it's the former, well i'm not aware of why that would cause problems
with git cloning but it's impossible to know what limitations your provider
might be putting on your internet connection.

If it's the latter, that should have no bearing on the git clone operation
since the git clone operation is performed within the cluster, using the
cluster's network connection to the outside world.

It is also possible, by the way, that your build was not stuck at the
clone, but rather at the step immediately after the clone.  Running the
build with loglevel 5 would likely provide more insight into where it was
stuck.


>
> 2017-11-02 1:37 GMT+01:00 Ben Parees :
>
>> can you confirm that your pods have external connectivity?  (oc rsh into
>> the jenkins pod and see if you can reach external addresses from it).
>>
>> If not (and i suspect you can't), you have a networking issue or perhaps
>> you need to go through a proxy?
>>
>>
>> On Wed, Nov 1, 2017 at 6:17 PM, Tien Hung Nguyen <
>> tienhng.ngu...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I tried to carry out this Tutorial: https://blog.openshift.com/ope
>>> nshift-pipelines-jenkins-blue-ocean/
>>> However, the build is stucking at the step pulling the source from git:
>>>
>>> Cloning "https://github.com/siamaksade/jenkins-blueocean.git " ...
>>> Commit: 70cff8557908b592d291e6ea0b3a018069b61324 (updated README)
>>> Author: Siamak Sadeghianfar 
>>> Date: Thu Apr 6 18:48:41 2017 +0700
>>>
>>>
>>> It's not moving forward anymore.
>>>
>>> This is my environment:
>>>
>>> $ oc version
>>> >> Output
>>>
>>> oc v3.6.1+008f2d5
>>>
>>> kubernetes v1.6.1+5115d708d7
>>>
>>> features: Basic-Auth
>>>
>>>
>>> Server https://127.0.0.1:8443
>>>
>>> openshift v3.7.0-rc.0+de54b6e-89
>>>
>>> kubernetes v1.7.6+a08f5eeb62
>>>
>>> <<
>>>
>>>
>>> $ oc describe node localhost
>>>
 Name: localhost
 Role:
 Labels: beta.kubernetes.io/arch=amd64
 beta.kubernetes.io/os=linux
 kubernetes.io/hostname=localhost
 Annotations: volumes.kubernetes.io/controll
 er-managed-attach-detach=true
 Taints: 
 CreationTimestamp: Wed, 01 Nov 2017 23:02:14 +0100
 Phase:
 Conditions:
   Type Status LastHeartbeatTime LastTransitionTime Reason Message
    -- - -- -- ---
   OutOfDisk False Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov 2017
 23:02:14 +0100 KubeletHasSufficientDisk kubelet has sufficient disk
 space available
   MemoryPressure False Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov
 2017 23:02:14 +0100 KubeletHasSufficientMemory kubelet has sufficient
 memory available
   DiskPressure False Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov 2017
 23:02:14 +0100 KubeletHasNoDiskPressure kubelet has no disk pressure
   Ready True Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov 2017 23:02:14
 +0100 KubeletReady kubelet is posting ready status
 Addresses: 192.168.65.2,localhost
 Capacity:
  cpu: 4
  memory: 8164736Ki
  pods: 40
 Allocatable:
  cpu: 4
  memory: 8062336Ki
  pods: 40
 System Info:
  Machine ID: def90f1040ba4fc097a8974c919abf08
  System UUID: 123EC372-2E1E-833C-8227-1CA74349D99D
  Boot ID: b70b1a58-a4ed-4984-800d-86817484b5d7
  Kernel Version: 4.9.49-moby
  OS Image: CentOS Linux 7 (Core)
  Operating System: linux
  Architecture: amd64
  Container Runtime Version: docker://Unknown
  Kubelet Version: v1.7.6+a08f5eeb62
  Kube-Proxy Version: v1.7.6+a08f5eeb62
 ExternalID: localhost
 Non-terminated Pods: (3 in total)
   Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits
   -   -- --- -
   ci jenkins-blueocean-1-build 0 (0%) 0 (0%) 0 (0%) 0 (0%)
   default docker-registry-1-zxqmv 100m (2%) 0 (0%) 256Mi (3%) 0 (0%)
   default router-1-v4f2j 100m (2%) 0 (0%) 256Mi (3%) 0 (0%)
 Allocated resources:
   (Total limits may be over 100 percent, i.e., overcommitted.)
   CPU Requests CPU Limits Memory Requests Memory Limits
    -- --- -
   200m (5%) 0 (0%) 512Mi (6%) 0 (0%)
 Events:
   FirstSeen LastSeen Count From SubObjectPath Type Reason Message
   -  -  -  -- ---
   7m 7m 1 kubelet, localhost Normal Starting Starting kubelet.
   7m 7m 2 kubelet, localhost 

Re: Jenkins image build step stucks on Git cloning step

2017-11-04 Thread Tien Hung Nguyen
Thank you for your response.

The problem was because I was using the internet of my Samsung Smartphone
via Hotspot. Please, could you tell me how I can use OpenShift using the
internet of my Smartphone?

2017-11-02 1:37 GMT+01:00 Ben Parees :

> can you confirm that your pods have external connectivity?  (oc rsh into
> the jenkins pod and see if you can reach external addresses from it).
>
> If not (and i suspect you can't), you have a networking issue or perhaps
> you need to go through a proxy?
>
>
> On Wed, Nov 1, 2017 at 6:17 PM, Tien Hung Nguyen  > wrote:
>
>> Hi,
>>
>> I tried to carry out this Tutorial: https://blog.openshift.com/ope
>> nshift-pipelines-jenkins-blue-ocean/
>> However, the build is stucking at the step pulling the source from git:
>>
>> Cloning "https://github.com/siamaksade/jenkins-blueocean.git " ...
>> Commit: 70cff8557908b592d291e6ea0b3a018069b61324 (updated README)
>> Author: Siamak Sadeghianfar 
>> Date: Thu Apr 6 18:48:41 2017 +0700
>>
>>
>> It's not moving forward anymore.
>>
>> This is my environment:
>>
>> $ oc version
>> >> Output
>>
>> oc v3.6.1+008f2d5
>>
>> kubernetes v1.6.1+5115d708d7
>>
>> features: Basic-Auth
>>
>>
>> Server https://127.0.0.1:8443
>>
>> openshift v3.7.0-rc.0+de54b6e-89
>>
>> kubernetes v1.7.6+a08f5eeb62
>>
>> <<
>>
>>
>> $ oc describe node localhost
>>
>>> Name: localhost
>>> Role:
>>> Labels: beta.kubernetes.io/arch=amd64
>>> beta.kubernetes.io/os=linux
>>> kubernetes.io/hostname=localhost
>>> Annotations: volumes.kubernetes.io/controller-managed-attach-detach=true
>>> Taints: 
>>> CreationTimestamp: Wed, 01 Nov 2017 23:02:14 +0100
>>> Phase:
>>> Conditions:
>>>   Type Status LastHeartbeatTime LastTransitionTime Reason Message
>>>    -- - -- -- ---
>>>   OutOfDisk False Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov 2017
>>> 23:02:14 +0100 KubeletHasSufficientDisk kubelet has sufficient disk
>>> space available
>>>   MemoryPressure False Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov 2017
>>> 23:02:14 +0100 KubeletHasSufficientMemory kubelet has sufficient memory
>>> available
>>>   DiskPressure False Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov 2017
>>> 23:02:14 +0100 KubeletHasNoDiskPressure kubelet has no disk pressure
>>>   Ready True Wed, 01 Nov 2017 23:09:45 +0100 Wed, 01 Nov 2017 23:02:14
>>> +0100 KubeletReady kubelet is posting ready status
>>> Addresses: 192.168.65.2,localhost
>>> Capacity:
>>>  cpu: 4
>>>  memory: 8164736Ki
>>>  pods: 40
>>> Allocatable:
>>>  cpu: 4
>>>  memory: 8062336Ki
>>>  pods: 40
>>> System Info:
>>>  Machine ID: def90f1040ba4fc097a8974c919abf08
>>>  System UUID: 123EC372-2E1E-833C-8227-1CA74349D99D
>>>  Boot ID: b70b1a58-a4ed-4984-800d-86817484b5d7
>>>  Kernel Version: 4.9.49-moby
>>>  OS Image: CentOS Linux 7 (Core)
>>>  Operating System: linux
>>>  Architecture: amd64
>>>  Container Runtime Version: docker://Unknown
>>>  Kubelet Version: v1.7.6+a08f5eeb62
>>>  Kube-Proxy Version: v1.7.6+a08f5eeb62
>>> ExternalID: localhost
>>> Non-terminated Pods: (3 in total)
>>>   Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits
>>>   -   -- --- -
>>>   ci jenkins-blueocean-1-build 0 (0%) 0 (0%) 0 (0%) 0 (0%)
>>>   default docker-registry-1-zxqmv 100m (2%) 0 (0%) 256Mi (3%) 0 (0%)
>>>   default router-1-v4f2j 100m (2%) 0 (0%) 256Mi (3%) 0 (0%)
>>> Allocated resources:
>>>   (Total limits may be over 100 percent, i.e., overcommitted.)
>>>   CPU Requests CPU Limits Memory Requests Memory Limits
>>>    -- --- -
>>>   200m (5%) 0 (0%) 512Mi (6%) 0 (0%)
>>> Events:
>>>   FirstSeen LastSeen Count From SubObjectPath Type Reason Message
>>>   -  -  -  -- ---
>>>   7m 7m 1 kubelet, localhost Normal Starting Starting kubelet.
>>>   7m 7m 2 kubelet, localhost Normal NodeHasSufficientDisk Node
>>> localhost status is now: NodeHasSufficientDisk
>>>   7m 7m 2 kubelet, localhost Normal NodeHasSufficientMemory Node
>>> localhost status is now: NodeHasSufficientMemory
>>>   7m 7m 2 kubelet, localhost Normal NodeHasNoDiskPressure Node
>>> localhost status is now: NodeHasNoDiskPressure
>>>   7m 7m 1 kubelet, localhost Normal NodeAllocatableEnforced Updated
>>> Node Allocatable limit across pods
>>
>>
>>
>> I started the local OpenShift Origin installation with the command 'oc
>> cluster up --version=latest --host-data-dir /Users/oc-data'.
>> The same is true when I start the local all-in-one cluster with the
>> command 'oc cluster up --host-data-dir /Users/oc-data' (Server oc version
>> 3.6.1).
>>
>> Last time when I used oc version 3.6.0., that problem didn't occur but I
>> got a problem described in https://github.com/openshif
>> t/origin/issues/17019
>>
>>
>>
>>
>>
>> ___
>> users mailing list
>> 

Re: ansible with openstack cloud provider

2017-11-04 Thread Joel Pearson
I found it worked better if it uses the v3 keystone api. I tried the v2
keystone api, and it didn't work out of the box, I had to manually modify
openstack.conf file.  It seems like something is not right, but I lost
interest in the problem and just made the variables available that it
wanted.

If you have issues with cinder, you might need to try my pull request too.

https://github.com/openshift/openshift-ansible/pull/5776

On Sat, Nov 4, 2017 at 9:21 PM Joel Pearson 
wrote:

> Yes mine too, but if you want it to work you need to add it back. I
> grabbed those values from the v2 RC file.
> On Sat, 4 Nov 2017 at 9:20 pm, Tim Dudgeon  wrote:
>
>> Yes, I removed those because my setup file (Newton release) included this:
>>
>> # unset v2.0 items in case set
>> unset OS_TENANT_ID
>> unset OS_TENANT_NAME
>>
>> Is openshift expecting an earlier release?
>>
>> On 04/11/2017 09:51, Joel Pearson wrote:
>>
>> I added this to mine:
>>
>> openshift_cloudprovider_openstack_tenant_name: "{{
>> lookup('env','OS_TENANT_NAME') }}"
>>
>> On Sat, Nov 4, 2017 at 8:50 PM Joel Pearson <
>> japear...@agiledigital.com.au> wrote:
>>
>>> You're missing "(openshift_cloudprovider_openstack_tenant_id or
>>> openshift_cloudprovider_openstack_tenant_name )"
>>>
>>> See: (openshift_cloudprovider_openstack_tenant_id is defined or
>>> openshift_cloudprovider_openstack_tenant_name is defined) in the file below
>>>
>>>
>>> https://github.com/openshift/openshift-ansible/blob/81cf5123366814d098b7ca169a6e4deb2759507d/roles/openshift_cloud_provider/tasks/openstack.yml#L10
>>>
>>> On Sat, Nov 4, 2017 at 8:41 PM Tim Dudgeon 
>>> wrote:
>>>
 On 03/11/2017 22:24, Joel Pearson wrote:

 Are you actually filling in those values with anything?

 Yes, all have values, I just didn't want to divulge them.

 I setup OpenShift on OpenStack Kilo and I needed to make sure I was
 using the v3 rc file and I also had an issue with block storage the the
 OpenStack file which I submitted a patch for.

 Are you using this OpenShift on OpenStack repo?


 https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/README.md

 No, the infrastructure is already provisioned. I'm, just using the
 openshift-ansible/playbooks/byo/config.yml playbook to provision openshift.



 The error message suggests that potentially none of the variables have
 a value so the file isn’t being generated.

 Well, they do have values and the file is not being generated. That's
 what I'm wanting to resolve.


 On Sat, 4 Nov 2017 at 5:50 am, Tim Dudgeon 
 wrote:

> I'm trying to use the openstack provisioning stuff (cinder volumes
> etc.)
> using the Ansible installer.
>  From the origin docs key to this is to enable the openstack cloud
> provider, which I try to do this this:
>
> openshift_cloudprovider_kind=openstack
> openshift_cloudprovider_openstack_auth_url=
> openshift_cloudprovider_openstack_username=
> openshift_cloudprovider_openstack_password=
> openshift_cloudprovider_openstack_domain_name=
> openshift_cloudprovider_openstack_region=
> openshift_cloudprovider_openstack_lb_subnet_id=
>
>
> But the Ansible installer fails (those being the only changes to the
> inventory file that otherwise works fine).
> Looking into the journal I find:
>
> 28188 plugins.go:115] Couldn't open cloud provider configuration
> /etc/origin/cloudprovider/openstack.conf: {Op:"open",
> Path:"/etc/origin/cloudprovider/openstack.conf", Err:0x2}
>
> And indeed the /etc/origin/cloudprovider/ dir is empty.
>
> So am I missing something important here?
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
 --
 Kind Regards,

 Joel Pearson
 Agile Digital | Senior Software Consultant

 Love Your Software™ | ABN 98 106 361 273
 p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au


 --
>>> Kind Regards,
>>>
>>> Joel Pearson
>>> Agile Digital | Senior Software Consultant
>>>
>>> Love Your Software™ | ABN 98 106 361 273
>>> p: 1300 858 277 <1300%20858%20277> | m: 0405 417 843 <0405417843> | w:
>>> agiledigital.com.au
>>>
>> --
>> Kind Regards,
>>
>> Joel Pearson
>> Agile Digital | Senior Software Consultant
>>
>> Love Your Software™ | ABN 98 106 361 273
>> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>>
>>
>> --
> Kind Regards,
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Software™ | ABN 98 106 361 273
> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>
-- 
Kind Regards,


Re: ansible with openstack cloud provider

2017-11-04 Thread Joel Pearson
Yes mine too, but if you want it to work you need to add it back. I grabbed
those values from the v2 RC file.
On Sat, 4 Nov 2017 at 9:20 pm, Tim Dudgeon  wrote:

> Yes, I removed those because my setup file (Newton release) included this:
>
> # unset v2.0 items in case set
> unset OS_TENANT_ID
> unset OS_TENANT_NAME
>
> Is openshift expecting an earlier release?
>
> On 04/11/2017 09:51, Joel Pearson wrote:
>
> I added this to mine:
>
> openshift_cloudprovider_openstack_tenant_name: "{{
> lookup('env','OS_TENANT_NAME') }}"
>
> On Sat, Nov 4, 2017 at 8:50 PM Joel Pearson 
> wrote:
>
>> You're missing "(openshift_cloudprovider_openstack_tenant_id or
>> openshift_cloudprovider_openstack_tenant_name )"
>>
>> See: (openshift_cloudprovider_openstack_tenant_id is defined or
>> openshift_cloudprovider_openstack_tenant_name is defined) in the file below
>>
>>
>> https://github.com/openshift/openshift-ansible/blob/81cf5123366814d098b7ca169a6e4deb2759507d/roles/openshift_cloud_provider/tasks/openstack.yml#L10
>>
>> On Sat, Nov 4, 2017 at 8:41 PM Tim Dudgeon  wrote:
>>
>>> On 03/11/2017 22:24, Joel Pearson wrote:
>>>
>>> Are you actually filling in those values with anything?
>>>
>>> Yes, all have values, I just didn't want to divulge them.
>>>
>>> I setup OpenShift on OpenStack Kilo and I needed to make sure I was
>>> using the v3 rc file and I also had an issue with block storage the the
>>> OpenStack file which I submitted a patch for.
>>>
>>> Are you using this OpenShift on OpenStack repo?
>>>
>>>
>>> https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/README.md
>>>
>>> No, the infrastructure is already provisioned. I'm, just using the
>>> openshift-ansible/playbooks/byo/config.yml playbook to provision openshift.
>>>
>>>
>>>
>>> The error message suggests that potentially none of the variables have a
>>> value so the file isn’t being generated.
>>>
>>> Well, they do have values and the file is not being generated. That's
>>> what I'm wanting to resolve.
>>>
>>>
>>> On Sat, 4 Nov 2017 at 5:50 am, Tim Dudgeon 
>>> wrote:
>>>
 I'm trying to use the openstack provisioning stuff (cinder volumes etc.)
 using the Ansible installer.
  From the origin docs key to this is to enable the openstack cloud
 provider, which I try to do this this:

 openshift_cloudprovider_kind=openstack
 openshift_cloudprovider_openstack_auth_url=
 openshift_cloudprovider_openstack_username=
 openshift_cloudprovider_openstack_password=
 openshift_cloudprovider_openstack_domain_name=
 openshift_cloudprovider_openstack_region=
 openshift_cloudprovider_openstack_lb_subnet_id=


 But the Ansible installer fails (those being the only changes to the
 inventory file that otherwise works fine).
 Looking into the journal I find:

 28188 plugins.go:115] Couldn't open cloud provider configuration
 /etc/origin/cloudprovider/openstack.conf: {Op:"open",
 Path:"/etc/origin/cloudprovider/openstack.conf", Err:0x2}

 And indeed the /etc/origin/cloudprovider/ dir is empty.

 So am I missing something important here?

 ___
 users mailing list
 users@lists.openshift.redhat.com
 http://lists.openshift.redhat.com/openshiftmm/listinfo/users

>>> --
>>> Kind Regards,
>>>
>>> Joel Pearson
>>> Agile Digital | Senior Software Consultant
>>>
>>> Love Your Software™ | ABN 98 106 361 273
>>> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>>>
>>>
>>> --
>> Kind Regards,
>>
>> Joel Pearson
>> Agile Digital | Senior Software Consultant
>>
>> Love Your Software™ | ABN 98 106 361 273
>> p: 1300 858 277 <1300%20858%20277> | m: 0405 417 843 <0405417843> | w:
>> agiledigital.com.au
>>
> --
> Kind Regards,
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Software™ | ABN 98 106 361 273
> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>
>
> --
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: ansible with openstack cloud provider

2017-11-04 Thread Tim Dudgeon

Yes, I removed those because my setup file (Newton release) included this:

# unset v2.0 items in case set
unset OS_TENANT_ID
unset OS_TENANT_NAME

Is openshift expecting an earlier release?


On 04/11/2017 09:51, Joel Pearson wrote:

I added this to mine:

openshift_cloudprovider_openstack_tenant_name: "{{ 
lookup('env','OS_TENANT_NAME') }}"


On Sat, Nov 4, 2017 at 8:50 PM Joel Pearson 
> 
wrote:


You're missing "(openshift_cloudprovider_openstack_tenant_id or
openshift_cloudprovider_openstack_tenant_name )"

See: (openshift_cloudprovider_openstack_tenant_id is defined or
openshift_cloudprovider_openstack_tenant_name is defined) in the
file below


https://github.com/openshift/openshift-ansible/blob/81cf5123366814d098b7ca169a6e4deb2759507d/roles/openshift_cloud_provider/tasks/openstack.yml#L10

On Sat, Nov 4, 2017 at 8:41 PM Tim Dudgeon > wrote:

On 03/11/2017 22:24, Joel Pearson wrote:

Are you actually filling in those values with anything? 

Yes, all have values, I just didn't want to divulge them.


I setup OpenShift on OpenStack Kilo and I needed to make sure
I was using the v3 rc file and I also had an issue with block
storage the the OpenStack file which I submitted a patch for.

Are you using this OpenShift on OpenStack repo?


https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/README.md


No, the infrastructure is already provisioned. I'm, just using
the openshift-ansible/playbooks/byo/config.yml playbook to
provision openshift.



The error message suggests that potentially none of the
variables have a value so the file isn’t being generated.

Well, they do have values and the file is not being generated.
That's what I'm wanting to resolve.



On Sat, 4 Nov 2017 at 5:50 am, Tim Dudgeon
> wrote:

I'm trying to use the openstack provisioning stuff
(cinder volumes etc.)
using the Ansible installer.
 From the origin docs key to this is to enable the
openstack cloud
provider, which I try to do this this:

openshift_cloudprovider_kind=openstack
openshift_cloudprovider_openstack_auth_url=
openshift_cloudprovider_openstack_username=
openshift_cloudprovider_openstack_password=
openshift_cloudprovider_openstack_domain_name=
openshift_cloudprovider_openstack_region=
openshift_cloudprovider_openstack_lb_subnet_id=


But the Ansible installer fails (those being the only
changes to the
inventory file that otherwise works fine).
Looking into the journal I find:

28188 plugins.go:115] Couldn't open cloud provider
configuration
/etc/origin/cloudprovider/openstack.conf:
{Op:"open",
Path:"/etc/origin/cloudprovider/openstack.conf", Err:0x2}

And indeed the /etc/origin/cloudprovider/ dir is empty.

So am I missing something important here?

___
users mailing list
users@lists.openshift.redhat.com

http://lists.openshift.redhat.com/openshiftmm/listinfo/users

-- 
Kind Regards,


Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277  | m: 0405 417 843
 | w: agiledigital.com.au



-- 
Kind Regards,


Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277  | m: 0405 417 843
 | w: agiledigital.com.au


--
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277  | m: 0405 417 843 
 | w: agiledigital.com.au 


___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: ansible with openstack cloud provider

2017-11-04 Thread Joel Pearson
I added this to mine:

openshift_cloudprovider_openstack_tenant_name: "{{
lookup('env','OS_TENANT_NAME') }}"

On Sat, Nov 4, 2017 at 8:50 PM Joel Pearson 
wrote:

> You're missing "(openshift_cloudprovider_openstack_tenant_id or
> openshift_cloudprovider_openstack_tenant_name )"
>
> See: (openshift_cloudprovider_openstack_tenant_id is defined or
> openshift_cloudprovider_openstack_tenant_name is defined) in the file below
>
>
> https://github.com/openshift/openshift-ansible/blob/81cf5123366814d098b7ca169a6e4deb2759507d/roles/openshift_cloud_provider/tasks/openstack.yml#L10
>
> On Sat, Nov 4, 2017 at 8:41 PM Tim Dudgeon  wrote:
>
>> On 03/11/2017 22:24, Joel Pearson wrote:
>>
>> Are you actually filling in those values with anything?
>>
>> Yes, all have values, I just didn't want to divulge them.
>>
>> I setup OpenShift on OpenStack Kilo and I needed to make sure I was using
>> the v3 rc file and I also had an issue with block storage the the OpenStack
>> file which I submitted a patch for.
>>
>> Are you using this OpenShift on OpenStack repo?
>>
>>
>> https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/README.md
>>
>> No, the infrastructure is already provisioned. I'm, just using the
>> openshift-ansible/playbooks/byo/config.yml playbook to provision openshift.
>>
>>
>>
>> The error message suggests that potentially none of the variables have a
>> value so the file isn’t being generated.
>>
>> Well, they do have values and the file is not being generated. That's
>> what I'm wanting to resolve.
>>
>>
>> On Sat, 4 Nov 2017 at 5:50 am, Tim Dudgeon  wrote:
>>
>>> I'm trying to use the openstack provisioning stuff (cinder volumes etc.)
>>> using the Ansible installer.
>>>  From the origin docs key to this is to enable the openstack cloud
>>> provider, which I try to do this this:
>>>
>>> openshift_cloudprovider_kind=openstack
>>> openshift_cloudprovider_openstack_auth_url=
>>> openshift_cloudprovider_openstack_username=
>>> openshift_cloudprovider_openstack_password=
>>> openshift_cloudprovider_openstack_domain_name=
>>> openshift_cloudprovider_openstack_region=
>>> openshift_cloudprovider_openstack_lb_subnet_id=
>>>
>>>
>>> But the Ansible installer fails (those being the only changes to the
>>> inventory file that otherwise works fine).
>>> Looking into the journal I find:
>>>
>>> 28188 plugins.go:115] Couldn't open cloud provider configuration
>>> /etc/origin/cloudprovider/openstack.conf: {Op:"open",
>>> Path:"/etc/origin/cloudprovider/openstack.conf", Err:0x2}
>>>
>>> And indeed the /etc/origin/cloudprovider/ dir is empty.
>>>
>>> So am I missing something important here?
>>>
>>> ___
>>> users mailing list
>>> users@lists.openshift.redhat.com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>
>> --
>> Kind Regards,
>>
>> Joel Pearson
>> Agile Digital | Senior Software Consultant
>>
>> Love Your Software™ | ABN 98 106 361 273
>> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>>
>>
>> --
> Kind Regards,
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Software™ | ABN 98 106 361 273
> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>
-- 
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: ansible with openstack cloud provider

2017-11-04 Thread Joel Pearson
You're missing "(openshift_cloudprovider_openstack_tenant_id or
openshift_cloudprovider_openstack_tenant_name )"

See: (openshift_cloudprovider_openstack_tenant_id is defined or
openshift_cloudprovider_openstack_tenant_name is defined) in the file below

https://github.com/openshift/openshift-ansible/blob/81cf5123366814d098b7ca169a6e4deb2759507d/roles/openshift_cloud_provider/tasks/openstack.yml#L10

On Sat, Nov 4, 2017 at 8:41 PM Tim Dudgeon  wrote:

> On 03/11/2017 22:24, Joel Pearson wrote:
>
> Are you actually filling in those values with anything?
>
> Yes, all have values, I just didn't want to divulge them.
>
> I setup OpenShift on OpenStack Kilo and I needed to make sure I was using
> the v3 rc file and I also had an issue with block storage the the OpenStack
> file which I submitted a patch for.
>
> Are you using this OpenShift on OpenStack repo?
>
>
> https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/README.md
>
> No, the infrastructure is already provisioned. I'm, just using the
> openshift-ansible/playbooks/byo/config.yml playbook to provision openshift.
>
>
>
> The error message suggests that potentially none of the variables have a
> value so the file isn’t being generated.
>
> Well, they do have values and the file is not being generated. That's what
> I'm wanting to resolve.
>
>
> On Sat, 4 Nov 2017 at 5:50 am, Tim Dudgeon  wrote:
>
>> I'm trying to use the openstack provisioning stuff (cinder volumes etc.)
>> using the Ansible installer.
>>  From the origin docs key to this is to enable the openstack cloud
>> provider, which I try to do this this:
>>
>> openshift_cloudprovider_kind=openstack
>> openshift_cloudprovider_openstack_auth_url=
>> openshift_cloudprovider_openstack_username=
>> openshift_cloudprovider_openstack_password=
>> openshift_cloudprovider_openstack_domain_name=
>> openshift_cloudprovider_openstack_region=
>> openshift_cloudprovider_openstack_lb_subnet_id=
>>
>>
>> But the Ansible installer fails (those being the only changes to the
>> inventory file that otherwise works fine).
>> Looking into the journal I find:
>>
>> 28188 plugins.go:115] Couldn't open cloud provider configuration
>> /etc/origin/cloudprovider/openstack.conf: {Op:"open",
>> Path:"/etc/origin/cloudprovider/openstack.conf", Err:0x2}
>>
>> And indeed the /etc/origin/cloudprovider/ dir is empty.
>>
>> So am I missing something important here?
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
> --
> Kind Regards,
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Software™ | ABN 98 106 361 273
> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>
>
> --
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: ansible with openstack cloud provider

2017-11-04 Thread Tim Dudgeon

On 03/11/2017 22:24, Joel Pearson wrote:

Are you actually filling in those values with anything? 

Yes, all have values, I just didn't want to divulge them.
I setup OpenShift on OpenStack Kilo and I needed to make sure I was 
using the v3 rc file and I also had an issue with block storage the 
the OpenStack file which I submitted a patch for.


Are you using this OpenShift on OpenStack repo?

https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/README.md

No, the infrastructure is already provisioned. I'm, just using the 
openshift-ansible/playbooks/byo/config.yml playbook to provision openshift.


The error message suggests that potentially none of the variables have 
a value so the file isn’t being generated.
Well, they do have values and the file is not being generated. That's 
what I'm wanting to resolve.


On Sat, 4 Nov 2017 at 5:50 am, Tim Dudgeon > wrote:


I'm trying to use the openstack provisioning stuff (cinder volumes
etc.)
using the Ansible installer.
 From the origin docs key to this is to enable the openstack cloud
provider, which I try to do this this:

openshift_cloudprovider_kind=openstack
openshift_cloudprovider_openstack_auth_url=
openshift_cloudprovider_openstack_username=
openshift_cloudprovider_openstack_password=
openshift_cloudprovider_openstack_domain_name=
openshift_cloudprovider_openstack_region=
openshift_cloudprovider_openstack_lb_subnet_id=


But the Ansible installer fails (those being the only changes to the
inventory file that otherwise works fine).
Looking into the journal I find:

28188 plugins.go:115] Couldn't open cloud provider configuration
/etc/origin/cloudprovider/openstack.conf: {Op:"open",
Path:"/etc/origin/cloudprovider/openstack.conf", Err:0x2}

And indeed the /etc/origin/cloudprovider/ dir is empty.

So am I missing something important here?

___
users mailing list
users@lists.openshift.redhat.com

http://lists.openshift.redhat.com/openshiftmm/listinfo/users

--
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277  | m: 0405 417 843 
 | w: agiledigital.com.au 


___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users