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

Re: can't get mysql cartridge to work

Well, they should be autofilled if you used the persistent/ephemeral template. Let's see the environment:
oc env pod/mysql-1-0kkx6 --list

Also, how did you instantiate the template? What command did you run?

On Thu, Jan 14, 2016 at 3:30 PM, Candide Kemmler <candide intrinsic world> wrote:
OK thanks. Here's what it says:

mbcandide:~ candide$ oc logs -p mysql-1-0kkx6
You must either specify the following environment variables:
  MYSQL_USER (regex: '^[a-zA-Z0-9_]+$')
  MYSQL_PASSWORD (regex: '^[a-zA-Z0-9_~! #$%^&*()-=<>,.?;:|]+$')
  MYSQL_DATABASE (regex: '^[a-zA-Z0-9_]+$')
Or the following environment variable:
  MYSQL_ROOT_PASSWORD (regex: '^[a-zA-Z0-9_~! #$%^&*()-=<>,.?;:|]+$')
Or both.
Optional Settings:
  MYSQL_MAX_CONNECTIONS (default: 151)
  MYSQL_FT_MIN_WORD_LEN (default: 4)
  MYSQL_FT_MAX_WORD_LEN (default: 20)
  MYSQL_AIO (default: 1)

I'm pretty sure I specified all the required parameters
user: root
password: letmein
database: intrinsic

On 14 Jan 2016, at 15:18, Martin Nagy <mnagy redhat com> wrote:

something is likely wrong with the MySQL since it is restarting. Can you show us your logs from the container? You can get logs from the last container by 'oc logs -p mysql-1-0kkx6'

On Thu, Jan 14, 2016 at 3:03 PM, Candide Kemmler <candide intrinsic world> wrote:

I created my own cluster using ansible (full install log here). Everything seems to be working fine except I can't seem to launch a mysql server. I tried both mysql-persistent and -ephemeral. In both cases I will end up having one pod showing and "flashing" from blue to orange and vice-versa.

Here's the log from my latest attempt at installing mysql-ephemeral on my test environment. Is there a way that I can access more verbose logs? This isn't nearly enough to understand a malfunction like this.


3:01:19 PMmysql-1-0kkx6PodBackoffBack-off restarting failed docker container (17 times in the last 3 minutes, 20 seconds)
3:00:59 PMmysql-1-0kkx6PodPulledContainer image "docker.io/centos/mysql-56-centos7 sha256:6d8562ea408b2f674b735b4e78550934b26c4913bb2e61757aa749008cee0cb8" already present on machine (6 times in the last 3 minutes, 16 seconds)
3:00:59 PMmysql-1-0kkx6PodStartedStarted with docker id 692e580331fe
3:00:59 PMmysql-1-0kkx6PodCreatedCreated with docker id 692e580331fe
2:59:29 PMmysql-1-0kkx6PodStartedStarted with docker id 2a3db4ea71a5
2:59:29 PMmysql-1-0kkx6PodCreatedCreated with docker id 2a3db4ea71a5
2:58:39 PMmysql-1-0kkx6PodCreatedCreated with docker id 97173a0da91c
2:58:39 PMmysql-1-0kkx6PodStartedStarted with docker id 97173a0da91c
2:58:09 PMmysql-1-0kkx6PodStartedStarted with docker id 9a8fac130fe6
2:58:09 PMmysql-1-0kkx6PodCreatedCreated with docker id 9a8fac130fe6
2:57:50 PMmysql-1-0kkx6PodStartedStarted with docker id 0874ac6c4ae6
2:57:50 PMmysql-1-0kkx6PodCreatedCreated with docker id 0874ac6c4ae6
2:57:49 PMmysql-1-deployPodFailedSyncError syncing pod, skipping: failed to delete containers ([exit status 1])
2:57:49 PMmysql-1-deployPodKillingKilling with docker id b410bb3266f3
2:57:44 PMmysql-1-0kkx6PodStartedStarted with docker id 24df27c8eda0
2:57:44 PMmysql-1-0kkx6PodCreatedCreated with docker id 24df27c8eda0
2:57:43 PMmysql-1-0kkx6PodScheduledSuccessfully assigned mysql-1-0kkx6 to apps.intrinsic.world
2:57:43 PMmysql-1ReplicationControllerSuccessfulCreateCreated pod: mysql-1-0kkx6
2:57:43 PMmysql-1-0kkx6PodStartedStarted with docker id 75267e329dac
2:57:43 PMmysql-1-0kkx6PodCreatedCreated with docker id 75267e329dac
2:57:42 PMmysql-1-0kkx6PodPulledContainer image "openshift/origin-pod:v1.1.0.1" already present on machine
2:57:41 PMmysql-1ReplicationControllerFailedUpdateError updating deployment test/mysql-1 status to Pending
2:57:41 PMmysql-1-deployPodStartedStarted with docker id cd9b44284684
2:57:41 PMmysql-1-deployPodScheduledSuccessfully assigned mysql-1-deploy to apps.intrinsic.world
2:57:41 PMmysql-1-deployPodCreatedCreated with docker id cd9b44284684
2:57:40 PMmysql-1-deployPodPulledContainer image "openshift/origin-deployer:v1.1.0.1" already present on machine
2:57:40 PMmysql-1-deployPodStartedStarted with docker id b410bb3266f3
2:57:40 PMmysql-1-deployPodCreatedCreated with docker id b410bb3266f3
2:57:39 PMmysql-1-deployPodPulledContainer image "openshift/origin-pod:v1.1.0.1" already present on machine

users mailing list
users lists openshift redhat com

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