Re: Unable to recreate PVC

2018-02-16 Thread Daniel Kučera
Thank you!

That worked.

2018-02-16 13:27 GMT+01:00 Krzysztof Troska <k.tro...@adbglobal.com>:
> Try to remove annotations from metadata.
>
> On Fri, 2018-02-16 at 12:56 +0100, Daniel Kučera wrote:
>> Hi all!
>>
>> Can someone please explain how can I recreate PVC with the same name?
>>
>> I tried following but in the end, I still have Status: Lost
>>
>>
>> [root@master1 ~]# oc describe pvc/etcd -n openshift-ansible-service-
>> broker
>> Name:etcd
>> Namespace:openshift-ansible-service-broker
>> StorageClass:
>> Status:Lost
>> Volume:
>> Labels:
>> Annotations:pv.kubernetes.io/bind-completed=yes
>> pv.kubernetes.io/bound-by-controller=yes
>> Capacity:
>> Access Modes:
>> Events:
>>   FirstSeenLastSeenCountFromSubObjectPath
>>   TypeReasonMessage
>>   ---
>>   -----
>>   3m3m1persistentvolume-controller
>> WarningClaimLostBound claim has lost reference to
>> PersistentVolume. Data on the volume is lost!
>> [root@master1 ~]# oc delete pvc/etcd -n openshift-ansible-service-
>> broker
>> persistentvolumeclaim "etcd" deleted
>> [root@master1 ~]# oc get pvc -n openshift-ansible-service-broker
>> No resources found.
>> [root@master1 ~]# cat pvc-etcd
>> apiVersion: v1
>> kind: PersistentVolumeClaim
>> metadata:
>>   annotations:
>> pv.kubernetes.io/bind-completed: "yes"
>> pv.kubernetes.io/bound-by-controller: "yes"
>>   creationTimestamp: null
>>   name: etcd
>> spec:
>>   accessModes:
>>   - ReadWriteOnce
>>   resources:
>> requests:
>>   storage: 1G
>> status: {}
>> [root@master1 ~]# oc create -f pvc-etcd
>> persistentvolumeclaim "etcd" created
>> [root@master1 ~]# oc describe pvc/etcd -n openshift-ansible-service-
>> broker
>> Name:etcd
>> Namespace:openshift-ansible-service-broker
>> StorageClass:
>> Status:Lost
>> Volume:
>> Labels:
>> Annotations:pv.kubernetes.io/bind-completed=yes
>> pv.kubernetes.io/bound-by-controller=yes
>> Capacity:
>> Access Modes:
>> Events:
>>   FirstSeenLastSeenCountFromSubObjectPath
>>   TypeReasonMessage
>>   ---
>>   -----
>>   10s10s1persistentvolume-controller
>> WarningClaimLostBound claim has lost reference to
>> PersistentVolume. Data on the volume is lost!
>>
>>
> --
> Krzysztof Troska <k.tro...@adbglobal.com>
> [https://www.adbglobal.com/wp-content/uploads/adb.png]
> adbglobal.com<https://www.adbglobal.com>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users



-- 

S pozdravom / Best regards
Daniel Kucera.

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


Unable to recreate PVC

2018-02-16 Thread Daniel Kučera
Hi all!

Can someone please explain how can I recreate PVC with the same name?

I tried following but in the end, I still have Status: Lost


[root@master1 ~]# oc describe pvc/etcd -n openshift-ansible-service-broker
Name:etcd
Namespace:openshift-ansible-service-broker
StorageClass:
Status:Lost
Volume:
Labels:
Annotations:pv.kubernetes.io/bind-completed=yes
pv.kubernetes.io/bound-by-controller=yes
Capacity:
Access Modes:
Events:
  FirstSeenLastSeenCountFromSubObjectPath
  TypeReasonMessage
  ---
  -----
  3m3m1persistentvolume-controller
WarningClaimLostBound claim has lost reference to
PersistentVolume. Data on the volume is lost!
[root@master1 ~]# oc delete pvc/etcd -n openshift-ansible-service-broker
persistentvolumeclaim "etcd" deleted
[root@master1 ~]# oc get pvc -n openshift-ansible-service-broker
No resources found.
[root@master1 ~]# cat pvc-etcd
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  annotations:
pv.kubernetes.io/bind-completed: "yes"
pv.kubernetes.io/bound-by-controller: "yes"
  creationTimestamp: null
  name: etcd
spec:
  accessModes:
  - ReadWriteOnce
  resources:
requests:
  storage: 1G
status: {}
[root@master1 ~]# oc create -f pvc-etcd
persistentvolumeclaim "etcd" created
[root@master1 ~]# oc describe pvc/etcd -n openshift-ansible-service-broker
Name:etcd
Namespace:openshift-ansible-service-broker
StorageClass:
Status:Lost
Volume:
Labels:
Annotations:pv.kubernetes.io/bind-completed=yes
pv.kubernetes.io/bound-by-controller=yes
Capacity:
Access Modes:
Events:
  FirstSeenLastSeenCountFromSubObjectPath
  TypeReasonMessage
  ---
  -----
  10s10s1persistentvolume-controller
WarningClaimLostBound claim has lost reference to
PersistentVolume. Data on the volume is lost!


-- 

S pozdravom / Best regards
Daniel Kucera.

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


Extending single-master cluster to multi-master

2017-12-13 Thread Daniel Kučera
Hi,

the docs say that it's not possible to migrate from cluster with one master
to multiple masters.
Is it really so?
Why?
Can it be done manually?

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


Re: Node not getting taint

2017-12-07 Thread Daniel Kučera
Thank you Marko,

I found out that v 1.5 probably doesn't support taints.

2017-12-06 13:02 GMT+01:00 Marko Lukša <marko.lu...@gmail.com>:
> You can verify by using oc get nodes/node-dev1 -o yaml
>
> You can also try seeing if something is overriding the taint by running:
>
> oc adm taint nodes node-dev1 mode=testing:NoSchedule && oc get
> nodes/node-dev1 -o yaml
>
> It's likely you'll see the taint, but it will get removed later.
>
> M.
>
> On 06. 12. 2017 11:29, Daniel Kučera wrote:
>>
>> Hi,
>>
>> I'm trying to set taint on node:
>>
>> $ oc adm taint nodes node-dev1 mode=testing:NoSchedule
>> node "node-dev1" tainted
>>
>> However if I run describe, it shows no taints:
>>
>> $ oc describe nodes/node-dev1
>> Name:node-dev1
>> Role:
>> Labels:beta.kubernetes.io/arch=amd64
>>  beta.kubernetes.io/os=linux
>>  kubernetes.io/hostname=node-dev1
>> Annotations:
>> Taints:
>> CreationTimestamp:Wed, 06 Dec 2017 11:01:41 +0100
>> Phase:
>>
>> $ oc get nodes/node-dev1
>> NAME  STATUSAGE   VERSION
>> node-dev1   Ready 27m   v1.5.2+43a9be4
>>
>> Bug again? How can I know if it's not set or only not displayed in
>> describe?
>>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users



-- 

S pozdravom / Best regards
Daniel Kucera.

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


Node not getting taint

2017-12-06 Thread Daniel Kučera
Hi,

I'm trying to set taint on node:

$ oc adm taint nodes node-dev1 mode=testing:NoSchedule
node "node-dev1" tainted

However if I run describe, it shows no taints:

$ oc describe nodes/node-dev1
Name:node-dev1
Role:
Labels:beta.kubernetes.io/arch=amd64
beta.kubernetes.io/os=linux
kubernetes.io/hostname=node-dev1
Annotations:
Taints:
CreationTimestamp:Wed, 06 Dec 2017 11:01:41 +0100
Phase:

$ oc get nodes/node-dev1
NAME  STATUSAGE   VERSION
node-dev1   Ready 27m   v1.5.2+43a9be4

Bug again? How can I know if it's not set or only not displayed in describe?

-- 

S pozdravom / Best regards
Daniel Kucera.

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


OSEv3:vars ignore

2017-11-30 Thread Daniel Kučera
Hi all!

I'm running following command to add new node to cluster:

ansible-playbook -v -i /root/hosts-openshift-rhldev
openshift-ansible/playbooks/byo/openshift-master/scaleup.yml

If I add a variable to [OSEv3:vars] section, it's ignored. If I add
the variable on the host line, it is applied successfully.

To clarify - this doesn't work:

[OSEv3:vars]
openshift_master_identity_providers=[{'name': 'my_ldap_provider',
'challenge': 'true', 'login': 'true', 'kind':
'LDAPPasswordIdentityProvider', 'attributes': {'id': ['dn'], 'name':
['cn'], 'preferredUsername': ['uid']}, 'bindDN': '', 'bindPassword':
'', 'ca': '', 'insecure': 'true', 'url':
'ldap://1.2.3.4/cn=users,cn=accounts,dc=test,dc=local?uid?sub'}]

[new_nodes]
master2.test.local

and this does:

[OSEv3:vars]

[new_nodes]
master2.test.local openshift_master_identity_providers="[{'name':
'my_ldap_provider', 'challenge': 'true', 'login': 'true', 'kind':
'LDAPPasswordIdentityProvider', 'attributes': {'id': ['dn'], 'name':
['cn'], 'preferredUsername': ['uid']}, 'bindDN': '', 'bindPassword':
'', 'ca': '', 'insecure': 'true', 'url':
'ldap://1.2.3.4/cn=users,cn=accounts,dc=test,dc=local?uid?sub'}]"

What am I doing wrong? How can I have the settings in vars section
applied when running specific playbooks?

Thanks.


-- 

S pozdravom / Best regards
Daniel Kucera.

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


Re: Deploy latest from web UI

2017-11-02 Thread Daniel Kučera
Ok, it works right in 3.6 so I guess it's a bug.

OpenShift Master:v3.6.0+c4dd4cf
Kubernetes Master:v1.6.1+5115d708d7

2017-11-02 12:27 GMT+01:00 Daniel Kučera <daniel.kuc...@gmail.com>:
> Hi,
>
> I'm using S2I image builds into imagestream and I've disabled
> "Automatically start new deployments when an image stream tag is
> updated. " in DC of that image.
>
> Now when I build new version - deployment doesn't change - this is OK.
> But when I click "Deploy" in DC, it deploys old version of image.
> I need to run "oc rollout latest dc/app -n app" to deploy latest
> version of built image.
>
> Is there some option in web UI to deploy latest image?
>
> OpenShift Master:v1.5.0+031cbe4
> Kubernetes Master:v1.5.2+43a9be4
>
> Thanks.
>
> --
>
> S pozdravom / Best regards
> Daniel Kucera.



-- 

S pozdravom / Best regards
Daniel Kucera.

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


Deploy latest from web UI

2017-11-02 Thread Daniel Kučera
Hi,

I'm using S2I image builds into imagestream and I've disabled
"Automatically start new deployments when an image stream tag is
updated. " in DC of that image.

Now when I build new version - deployment doesn't change - this is OK.
But when I click "Deploy" in DC, it deploys old version of image.
I need to run "oc rollout latest dc/app -n app" to deploy latest
version of built image.

Is there some option in web UI to deploy latest image?

OpenShift Master:v1.5.0+031cbe4
Kubernetes Master:v1.5.2+43a9be4

Thanks.

-- 

S pozdravom / Best regards
Daniel Kucera.

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


Re: Re: authentication required even for pulling images from private registry

2017-10-19 Thread Daniel Kučera
Hi Jared,

can you post your Deployment config?

2017-10-19 2:37 GMT+02:00 Yu Wei :
> Image and pods are in the same project.
>
> Jared
> Interested in cloud computing,big data processing,linux
>
> 2017年10月19日 上午4:39于 Joel Pearson 写道:
> Is the image in a different project that which you’re trying to run it in?
>
> Ie the image lives in project a and you’re trying to run the pod in project
> b
>
> In that scenario you need to grant some sort of permissions (image-pull or
> something).
> On Thu, 19 Oct 2017 at 4:32 am, Yu Wei  wrote:
>>
>> Hi,
>>
>> I setup openshift origin cluster 3.6 and found a problem with private
>> registry.
>>
>> Image was failed to be pulled by work node with error as below,
>>
>> rpc error: code = 2 desc = unauthorized: authentication required
>>
>>
>> However, the registry works well and I also could find the image via
>> docker-console.
>>
>> I installed the cluster via "Advanced installation". It seemed insecure
>> registry is not enabled.
>>
>>
>> How could I check what's wrong in my env?
>>
>>
>>
>> Thanks,
>>
>> Jared, (韦煜)
>> Software developer
>> Interested in open source software, big data, Linux
>>
>> ___
>> 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
>



-- 

S pozdravom / Best regards
Daniel Kucera.

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


Re: Web console overview sections?

2017-10-17 Thread Daniel Kučera
Hi Sam,

I'm also interested in this. I tried adding label app to all
deploymentconfigs but they are separated on Overview page. See here:

oc get all -l app=cargo-app
NAME  REVISION   DESIRED   CURRENT   TRIGGERED BY
dc/cargo-crond1  1 1
config,image(cargo:latest)
dc/cargo-supervisor   1  1 1
config,image(cargo:latest)
dc/cargo-webserver1  1 1
config,image(cargo:latest)

NAMEDESIRED   CURRENT   READY AGE
rc/cargo-crond-11 1 1 17h
rc/cargo-supervisor-1   1 1 1 17h
rc/cargo-webserver-11 1 1 17h

NAMECLUSTER-IPEXTERNAL-IP   PORT(S)AGE
svc/cargo   172.30.7.88   8000/TCP   17h

NAME  READY STATUSRESTARTS   AGE
po/cargo-crond-1-8lt5k2/2   Running   0  17h
po/cargo-supervisor-1-ykjy3   2/2   Running   0  17h
po/cargo-webserver-1-8z9kw2/2   Running   0  17h

Version

OpenShift Master:
v1.4.1
Kubernetes Master:
v1.4.0+776c994

Screenshot:

[image: Vnorený obrázok 1]


2017-10-16 20:10 GMT+02:00 Sam Padgett :

> Tako, anything with an `app` label is shown as an application. If you add
> an app label to your deployment config or pods, they should show up on the
> overview as an application with that name.
>
> On Mon, Oct 16, 2017 at 12:47 PM, Tako Schotanus 
> wrote:
>
>> Hi,
>>
>> I just updated my minishift installation (from 1.1 to 1.7) and the web
>> console overview page has changed again. A .yaml template that I was using
>> before to create our services (5 pods) now puts the app's main entry point
>> in the list of "Other Resources" while a seemingly random pod has been
>> selected to be an "application".
>>
>> Is there some documentation somewhere that I can look at that explains
>> how the layout of the overview page is decided?
>>
>> Thanks!
>>
>> --
>>
>> TAKO SCHOTANUS
>>
>> SENIOR SOFTWARE ENGINEER
>>
>> Red Hat
>>
>> 
>> 
>>
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>


-- 

S pozdravom / Best regards
Daniel Kucera.
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: S2I builds not incremental?

2017-10-13 Thread Daniel Kučera
Hi Tako.

You need to set incremental: true

https://docs.openshift.com/container-platform/3.4/dev_guide/builds/build_strategies.html#incremental-builds

I also spent some time on this :)

2017-10-13 10:39 GMT+02:00 Tako Schotanus :

> Hi,
>
> we've been using S2I builds for RHOAR for about a month now which is a lot
> faster and a lot less resource intensive than using Jenkins pipeline
> builds, but
>
> the S2I builders are supposed to support incremental builds, and in effect
> when I run "s2i --incremental " manually it does indeed work, but
> inside OpenShift the builds are never incremental?
>
> Are we doing something wrong? How do we make OpenShift do incremental
> builds?
>
> Cheers,
>
> --
>
> TAKO SCHOTANUS
>
> SENIOR SOFTWARE ENGINEER
>
> Red Hat
>
> 
> 
>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>


-- 

S pozdravom / Best regards
Daniel Kucera.
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: DevOps With OpenShift issues on Ubuntu 16.04

2017-09-18 Thread Daniel Kučera
Hi Benjamin,

the image you are using probably expects httpd to run under root
account and this is not permitted by default (because it is a security
threat).

Read this post to get more info how to enable it:
https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift-cluster/

2017-09-18 8:42 GMT+02:00 Benjamin :
> Hi there,
>
> I am trying to follow the book "DevOps With OpenShift" and having some
> trouble. When I get to the point of launching the 'cotd' container demo,
> specifically this line:
>
> oc new-app --name='cotd' --labels name='cotd'
> php~https://github.com/devops-with-openshift/cotd.git -e SELECTOR=cats
>
> It appears to spool up and build okay, but then fails in a crash loop:
>
> AH00558: httpd: Could not reliably determine the server's fully qualified
> domain name, using 172.17.0.2. Set the 'ServerName' directive globally to
> suppress this message
> (13)Permission denied: AH00058: Error retrieving pid file
> /opt/rh/httpd24/root/var/run/httpd/httpd.pid
> AH00059: Remove it before continuing if it is corrupted.
>
> I'm running Ubuntu 16.04 64-bit, fully up-to-date including the kernel, and
> using the latest stable oc binary (Origin v3.6.0), and running Docker from
> its official repos. OpenShift itself seems to work great and has no major
> issues.
>
> FWIW I've used this exact same book and exact same commands and processes to
> successfully get the demo up and running on two different Macs, so it looks
> like this is a Ubuntu-specific issue. I would switch to Fedora but my
> workstation requires Ubuntu for various annoying reasons. I want to get this
> up and running as my workstation has 32GB of RAM which is 2-4x more than all
> my other machines!
>
> Version information follows:
>
> foo@bar:~$ oc version
> oc v3.6.0+c4dd4cf
> kubernetes v1.6.1+5115d708d7
> features: Basic-Auth GSSAPI Kerberos SPNEGO
>
> Server https://127.0.0.1:8443
> openshift v3.6.0+c4dd4cf
> kubernetes v1.6.1+5115d708d7
>
> foo@bar:~$ docker -v
> Docker version 17.06.1-ce, build 874a737
>
> foo@bar:~$ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 16.04.3 LTS
> Release: 16.04
> Codename: xenial
>
> foo@bar:~$ uname -a
> Linux bar 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017
> x86_64 x86_64 x86_64 GNU/Linux
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>



-- 

S pozdravom / Best regards
Daniel Kucera.

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


Re: Metrics not accessible

2017-09-14 Thread Daniel Kučera
Thank you! That helped. I was running latest from ansible installation.

Changing to v3.6.0 helped and now it runs ok.

2017-09-14 12:11 GMT+02:00 Mateus Caruccio <mateus.caruc...@getupcloud.com>:
> Check if you are running the latest version of the images. If that is your
> case change it to v3.6.0 for cassandra, metrics and heapster and restart all
> of them as stated before.
>
> Ansible always installs the :latest tag of the images by default.
>
> Em 14 de set de 2017 07:05, "Daniel Kučera" <daniel.kuc...@gmail.com>
> escreveu:
>>
>> I'm getting the same error, is there any workaround?
>>
>>
>> 2017-09-14 09:50:00,572 SEVERE
>> [com.google.common.util.concurrent.ExecutionList]
>> (cluster3-nio-worker-7) RuntimeException while executing runnable
>> rx.observable.ListenableFutureObservable$2$1@54d5c01c with executor
>>
>> com.google.common.util.concurrent.MoreExecutors$ListeningDecorator@29a43cd3:
>> java.util.concurrent.RejectedExecutionException: Task
>> rx.observable.ListenableFutureObservable$2$1@54d5c01c rejected from
>> java.util.concurrent.ThreadPoolExecutor@2d127c2f[Terminated, pool size
>> = 0, active threads = 0, queued tasks = 0, completed tasks = 78]
>>
>> --
>>
>> S pozdravom / Best regards
>> Daniel Kucera.
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users



-- 

S pozdravom / Best regards
Daniel Kucera.

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


Re: Metrics not accessible

2017-09-14 Thread Daniel Kučera
I'm getting the same error, is there any workaround?


2017-09-14 09:50:00,572 SEVERE
[com.google.common.util.concurrent.ExecutionList]
(cluster3-nio-worker-7) RuntimeException while executing runnable
rx.observable.ListenableFutureObservable$2$1@54d5c01c with executor
com.google.common.util.concurrent.MoreExecutors$ListeningDecorator@29a43cd3:
java.util.concurrent.RejectedExecutionException: Task
rx.observable.ListenableFutureObservable$2$1@54d5c01c rejected from
java.util.concurrent.ThreadPoolExecutor@2d127c2f[Terminated, pool size
= 0, active threads = 0, queued tasks = 0, completed tasks = 78]

-- 

S pozdravom / Best regards
Daniel Kucera.

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