Re: RHEL image

2016-10-19 Thread Daniel McPherson
sudo docker run -it rhel7: cat /etc/redhat-release



On Tue, Oct 18, 2016 at 11:27 PM, Lionel Orellana 
wrote:

> I suppose I can do this but what version of EAP (and RHEL) does each tag
> map to?
>
> https://registry.access.redhat.com/v1/repositories/
> jboss-eap-6/eap64-openshift/tags
>
> On 19 October 2016 at 14:19, Lionel Orellana  wrote:
>
>> Also, how do I see what tags are available for those images in the redhat
>> registry?
>>
>> On 19 October 2016 at 12:15, Lionel Orellana  wrote:
>>
>>> Thanks Jonathan. Should have tried that.
>>>
>>> At the risk of asking another silly question, is there a way to easily
>>> know what version of RHEL is an EAP image built on?
>>> e.g. jboss-eap-6/eap64-openshift
>>>
>>> On 19 October 2016 at 12:03, Jonathan Yu  wrote:
>>>
 Hi Lionel,

 On Tue, Oct 18, 2016 at 5:49 PM, Lionel Orellana 
 wrote:

> Hi
>
> Is there an officially supported image of RHEL? I see all the xPaaS
> images in the customer portal but nothing about a plain RHEL image like
> there is for Centos.
>

 Yes, there is: https://access.redhat.com/sear
 ch/#/container-images?q=rhel=1=relevant=12=
 any=ImageRepository

 On a RHEL system you should be able to do: "docker pull rhel7"

 This is the image that other Red Hat-supported images are built on.

 For example:

 official s2i-nodejs-container
 
 is FROM rhscl/s2i-base-rhel7
 
 which is FROM rhel7.2 (see the access.redhat.com search above)

>>>
>>>
>>
>
> ___
> 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


Re: ose 3.3 upgrade - metrics deployment mode=refresh error

2016-10-04 Thread Daniel McPherson
Here is the related bug: https://bugzilla.redhat.com/show_bug.cgi?id=1381336

On Sun, Oct 2, 2016 at 8:32 PM, Dale Bewley  wrote:

> I'm upgrading from OSE 3.2 to OCP 3.3.
>
> During the redeployment (refresh) of metrics, which starts like this:
>
> ```
> [root@ose-test-master-01 playbook-openshift]# oc new-app -f \
> > /usr/share/openshift/examples/infrastructure-templates/
> enterprise/metrics-deployer.yaml \
> > -p HAWKULAR_METRICS_HOSTNAME=metrics.test.os.example.com,MODE=
> refresh
> --> Deploying template metrics-deployer-template for "/usr/share/openshift/
> examples/infrastructure-templates/enterprise/metrics-deployer.yaml"
>
>  metrics-deployer-template
>  -
>  Template for deploying the required Metrics integration. Requires
> cluster-admin 'metrics-deployer' service account and 'metrics-deployer'
> secret.
>
>  * With parameters:
> * IMAGE_PREFIX=registry.access.redhat.com/openshift3/
> * IMAGE_VERSION=3.3.0
> * MASTER_URL=https://kubernetes.default.svc:443
> * HAWKULAR_METRICS_HOSTNAME=metrics.test.os.example.com
> * MODE=refresh
> * REDEPLOY=false
> * IGNORE_PREFLIGHT=false
> * USE_PERSISTENT_STORAGE=true
> * DYNAMICALLY_PROVISION_STORAGE=false
> * CASSANDRA_NODES=1
> * CASSANDRA_PV_SIZE=10Gi
> * METRIC_DURATION=7
> * USER_WRITE_ACCESS=false
> * HEAPSTER_NODE_ID=nodename
> * METRIC_RESOLUTION=15s
>
> --> Creating resources with label app=metrics-deployer-template ...
> pod "metrics-deployer-r8w4b" created
> --> Success
> Run 'oc status' to view your app.
> ```
>
> There is a failure from the deploy pod. Logs follow:
>
> ```
> [root@ose-test-master-01 playbook-openshift]# oc logs
> metrics-deployer-r8w4b
> + deployer_mode=refresh
> + image_prefix=registry.access.redhat.com/openshift3/
> + image_version=3.3.0
> + master_url=https://kubernetes.default.svc:443
> + [[ 3 == \/ ]]
> ++ parse_bool false REDEPLOY
> ++ local v=false
> ++ '[' false '!=' true -a false '!=' false ']'
> ++ echo false
> + redeploy=false
> + '[' false == true ']'
> + mode=refresh
> + '[' refresh = redeploy ']'
> ++ parse_bool false IGNORE_PREFLIGHT
> ++ local v=false
> ++ '[' false '!=' true -a false '!=' false ']'
> ++ echo false
> + ignore_preflight=false
> + cassandra_nodes=1
> ++ parse_bool true USE_PERSISTENT_STORAGE
> ++ local v=true
> ++ '[' true '!=' true -a true '!=' false ']'
> ++ echo true
> + use_persistent_storage=true
> ++ parse_bool false DYNAMICALLY_PROVISION_STORAGE
> ++ local v=false
> ++ '[' false '!=' true -a false '!=' false ']'
> ++ echo false
> + dynamically_provision_storage=false
> + cassandra_pv_size=10Gi
> + metric_duration=7
> + user_write_access=false
> + heapster_node_id=nodename
> + metric_resolution=15s
> + project=openshift-infra
> + master_ca=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
> + token_file=/var/run/secrets/kubernetes.io/serviceaccount/token
> + dir=/etc/deploy/_output
> + secret_dir=/secret
> + rm -rf /etc/deploy/_output
> + mkdir -p /etc/deploy/_output
> + chmod 700 /etc/deploy/_output
> + mkdir -p /secret
> + chmod 700 /secret
> chmod: changing permissions of '/secret': Read-only file system
> + :
> + hawkular_metrics_hostname=metrics.test.os.example.com
> + hawkular_metrics_alias=hawkular-metrics
> + hawkular_cassandra_alias=hawkular-cassandra
> ++ date +%s
> + openshift admin ca create-signer-cert --key=/etc/deploy/_output/ca.key
> --cert=/etc/deploy/_output/ca.crt --serial=/etc/deploy/_output/ca.serial.txt
> --name=metrics-signer@1475451952
> + '[' -n 1 ']'
> + oc config set-cluster master --api-version=v1
> --certificate-authority=/var/run/secrets/kubernetes.io/
> serviceaccount/ca.crt --server=https://kubernetes.default.svc:443
> cluster "master" set.
> ++ cat /var/run/secrets/kubernetes.io/serviceaccount/token
> + oc config set-credentials account --token=eyJhb---snipped---
> user "account" set.
> + oc config set-context current --cluster=master --user=account
> --namespace=openshift-infra
> context "current" set.
> + oc config use-context current
> switched to context "current".
> + old_kc=/etc/deploy/.kubeconfig
> + KUBECONFIG=/etc/deploy/_output/kube.conf
> + '[' -z 1 ']'
> + oc config set-cluster deployer-master --api-version=v1
> --certificate-authority=/var/run/secrets/kubernetes.io/
> serviceaccount/ca.crt --server=https://kubernetes.default.svc:443
> cluster "deployer-master" set.
> ++ cat /var/run/secrets/kubernetes.io/serviceaccount/token
> + oc config set-credentials deployer-account --token
> =eyJhb---snipped---
> user "deployer-account" set.
> + oc config set-context deployer-context --cluster=deployer-master
> --user=deployer-account --namespace=openshift-infra
> context "deployer-context" set.
> + '[' -n 1 ']'
> + oc config use-context deployer-context
> switched to context "deployer-context".
> + case $deployer_mode in
> + '[' false '!=' true ']'
> + validate_preflight
>