>
>
>
>> Hi,
>>
>> I'm trying to import classes into my foreman environment unfortunately
>> this is not working either by CLI or Foreman dashboard. The hosts are in
>> foreman, I installed a smart proxy with 'puppet' capability when I hit
>> import from <foreman_proxy_name> I get to following. If I select no the
>> action is canceled if I select yes I get an error:
>> Changed environments and puppet classes
>>
>> Accept these environment changes found in puppet? EnvironmentOperation
>> Classes demo Remove: Deleted environment
>>
>> Error
>>
>
This is my foreman-proxy version
dpkg -l | grep fore
ii foreman-proxy
1.0-1 RESTful proxies for DNS,
DHCP, TFTP, and Pup
Ubuntu version
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
I tried the commands you specified
foreman # curl http://<HOST>:8077/features
– SNIP
<ul>
<li>puppet</li>
</ul>
– SNIP
>> I'm guessing you have a permission problems where the foreman proxy user
> don't have access to read your manifests, afair, by default, the proxy user
> add itself to the puppet group.
>
> a very simply check is using the proxy api, e.g.
>
> curl http://proxy:port/puppet/environments --> should return a list of
> environments
>
This one looks empty
foreman # curl http://<HOST>:8077/puppet/environments
[]
> then
> curl http://proxy:port/puppet/environments/production --> should return
> info about the production environment
>
curl http://<HOST>:8077/puppet/environments/production
Not found
>
> curl http://proxy:port/puppet/environments/production/classes --> should
> return all classes.
>
curl http://<HOST>:8077/puppet/environments/production/classes
Not found
>
> this hopefully should help you identify the problem.
>
> Ohad
>
My daemon is running as foreman-proxy
/etc/default/foreman-proxy
DAEMON_USER="foreman-proxy:foreman-proxy"
foreman-proxy is member of the group puppet
foreman # id foreman-proxy
uid=999(foreman-proxy) gid=998(foreman-proxy)
groups=1004(puppet),998(foreman-proxy)
puppet group is owner of the modulespath
foreman # ls -la /etc/puppet/env/production/modules/
total 76
drwxr-xr-x 19 puppet puppet 4096 2012-07-16 13:08 .
drwxr-xr-x 4 puppet puppet 4096 2012-07-16 13:08 …
drwxr-xr-x 6 puppet puppet 4096 2012-07-16 13:08 apache
drwxr-xr-x 6 puppet puppet 4096 2012-07-16 13:08 apt
drwxr-xr-x 6 puppet puppet 4096 2012-07-16 13:08 augeas
drwxr-xr-x 7 puppet puppet 4096 2012-07-16 13:08 baseline
does it ring any bell?
···
2012/8/13 Ohad Levy
> On Mon, Aug 13, 2012 at 11:49 AM, Martin Willemsma wrote:
foreman # rake puppet:import:puppet_classes RAILS_ENV=production --trace
/usr/share/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
warning: already initialized constant ENC_NONE
/usr/share/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
warning: already initialized constant ENC_EUC
/usr/share/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
warning: already initialized constant ENC_SJIS
/usr/share/foreman/vendor/ruby/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
warning: already initialized constant ENC_UTF8
** Invoke puppet:import:puppet_classes (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute puppet:import:puppet_classes
Evaluating possible changes to your installation
Scheduled changes to your environment
Create/update environments
Delete environments
demo : Remove environment
Proceed with these modifications? <yes|no> yes
Problems were detected during the execution phase
demo is used by $fqdn
demo is used by $fqdn
demo is used by $fqdn
Import failed
Any hints on how to tackle this? My goal is to assign classes from
foreman and use as an ENC.
Regards,
Martin Willemsma
–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.
–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.