Thread: [GENERAL] PostgreSQL Cookbook Testing

[GENERAL] PostgreSQL Cookbook Testing

From
PAWAN SHARMA
Date:
Hi All,

Please help to configure kitchen.yml to test the PostgreSQL cookbook testing.

#-> kitchen converge
-----> Starting Kitchen (v1.16.0)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::UserError
>>>>>> Message: Error parsing /tmp/postgresql-master/.kitchen.yml as YAML.
Please run `kitchen diagnose --no-instances --loader' to help debug your issue.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

-Server type: VMware
OS: Redhat 6 or Redhat 7
PostgreSQL Version: 9.5.7


-Pawan



Re: [GENERAL] PostgreSQL Cookbook Testing

From
Karsten Hilbert
Date:
On Fri, Jun 23, 2017 at 05:57:44PM +0530, PAWAN SHARMA wrote:

> Please help to configure kitchen.yml to test the PostgreSQL cookbook
> testing.
>
> #-> kitchen converge
> -----> Starting Kitchen (v1.16.0)
> >>>>>> ------Exception-------
> >>>>>> Class: Kitchen::UserError
> >>>>>> Message: Error parsing /tmp/postgresql-master/.kitchen.yml as YAML.
> Please run `kitchen diagnose --no-instances --loader' to help debug your
> issue.
> >>>>>> ----------------------
> >>>>>> Please see .kitchen/logs/kitchen.log for more details
> >>>>>> Also try running `kitchen diagnose --all` for configuration

So ?  The output gives you THREE hints already.  Care to do as the suggest ?


Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


Re: [GENERAL] PostgreSQL Cookbook Testing

From
PAWAN SHARMA
Date:

On Fri, Jun 23, 2017 at 6:10 PM, Karsten Hilbert <Karsten.Hilbert@gmx.net> wrote:
On Fri, Jun 23, 2017 at 05:57:44PM +0530, PAWAN SHARMA wrote:

> Please help to configure kitchen.yml to test the PostgreSQL cookbook
> testing.
>
> #-> kitchen converge
> -----> Starting Kitchen (v1.16.0)
> >>>>>> ------Exception-------
> >>>>>> Class: Kitchen::UserError
> >>>>>> Message: Error parsing /tmp/postgresql-master/.kitchen.yml as YAML.
> Please run `kitchen diagnose --no-instances --loader' to help debug your
> issue.
> >>>>>> ----------------------
> >>>>>> Please see .kitchen/logs/kitchen.log for more details
> >>>>>> Also try running `kitchen diagnose --all` for configuration

So ?  The output gives you THREE hints already.  Care to do as the suggest ?


Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



nothing, it will show me the configuration of kitchen.yml

 

Re: [GENERAL] PostgreSQL Cookbook Testing

From
Karsten Hilbert
Date:
On Fri, Jun 23, 2017 at 06:33:56PM +0530, PAWAN SHARMA wrote:

> > On Fri, Jun 23, 2017 at 05:57:44PM +0530, PAWAN SHARMA wrote:
> >
> > > Please help to configure kitchen.yml to test the PostgreSQL cookbook
> > > testing.
> > >
> > > #-> kitchen converge
> > > -----> Starting Kitchen (v1.16.0)
> > > >>>>>> ------Exception-------
> > > >>>>>> Class: Kitchen::UserError
> > > >>>>>> Message: Error parsing /tmp/postgresql-master/.kitchen.yml as
> > YAML.
> > > Please run `kitchen diagnose --no-instances --loader' to help debug your
> > > issue.
> > > >>>>>> ----------------------
> > > >>>>>> Please see .kitchen/logs/kitchen.log for more details
> > > >>>>>> Also try running `kitchen diagnose --all` for configuration
> >
> > So ?  The output gives you THREE hints already.  Care to do as the suggest
> > ?
>
> nothing, it will show me the configuration of kitchen.yml

"Nothing" is quite obviously not the same as "configuration
of kitchen.yml". And, it is one of _three_. Also, whatever
"it" _is_.

You'll have to put in more effort, I suppose.

But that's not the track record AFAIR.

Bye,
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


Re: [GENERAL] PostgreSQL Cookbook Testing

From
Adrian Klaver
Date:
On 06/23/2017 05:27 AM, PAWAN SHARMA wrote:
> Hi All,
>
> Please help to configure kitchen.yml to test the PostgreSQL cookbook
> testing.
>
> #-> kitchen converge
> -----> Starting Kitchen (v1.16.0)
>  >>>>>> ------Exception-------
>  >>>>>> Class: Kitchen::UserError
>  >>>>>> Message: Error parsing /tmp/postgresql-master/.kitchen.yml as YAML.

The above seems to indicate that you are not supplying .kitchen.yml as
proper YAML.

You did not say, but I am assuming you are working with Chef. In that
case you might want to look at link below for proper form of .kitchen.yml:

https://docs.chef.io/config_yml_kitchen.html

Might also run the file through a linter. A quick search found these:

http://www.yamllint.com/

https://github.com/adrienverge/yamllint


> Please run `kitchen diagnose --no-instances --loader' to help debug your
> issue.
>  >>>>>> ----------------------
>  >>>>>> Please see .kitchen/logs/kitchen.log for more details
>  >>>>>> Also try running `kitchen diagnose --all` for configuration
>
> -Server type: VMware
> OS: Redhat 6 or Redhat 7
> PostgreSQL Version: 9.5.7
>
>
> -Pawan
>
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com