This is the code I have in my puppetmaster
class mediawiki {
$phpmysql = $osfamily ? {
'redhat' => 'php-mysql',
'debian' => 'php5-mysql',
default => 'php-mysql',
}
package { $phpmysql:
ensure => 'present',
}
if $osfamily == 'redhat' {
package {'php-xml':
ensure => 'present',
}
}
class { '::apache':
docroot => '/var/www/html',
mpm_module => 'prefork',
subscribe => Package[$phpmysql],
}
class { '::apache::mod::php': }
vcsrepo {'/var/www/html':
ensure => 'present',
provider => 'git',
source => "https://github.com/wikimedia/mediawiki.git",
revision => 'REL1_23',
}
And when I execute puppet agent with debug enabled as below
puppet agent --debug --verbose --no-daemonize --onetime
I could see that CentOS and Ubuntu puppet agents are sending request to Git in different ways and for Ubuntu I am able to pull the code from Git but for CentOS its failing with wrong revision number as below
Error: /Stage[main]/Mediawiki/Vcsrepo[/var/www/html]: Could not evaluate: Execution of '/usr/bin/git rev-parse HEAD' returned 128: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
HEAD
CentOS Debug Log
Debug: /Stage[main]/Linux/File[/info.txt]: The container Class[Linux] will propagate my refresh event
Debug: /Stage[main]/Mediawiki/File[/var/www/html/index.html]: Nothing to manage: no ensure and the resource doesn't exist
Debug: Executing '/usr/bin/git config --get remote.origin.url'
Debug: Executing '/usr/bin/git remote'
Debug: Executing '/usr/bin/git config --get remote.origin.url'
Debug: Executing '/usr/bin/git fetch origin'
Debug: Executing '/usr/bin/git fetch --tags origin'
Debug: Executing '/usr/bin/git rev-parse HEAD'
Error: /Stage[main]/Mediawiki/Vcsrepo[/var/www/html]: Could not evaluate: Execution of '/usr/bin/git rev-parse HEAD' returned 128: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
HEAD
Ubuntu Debug Log
Debug: /Stage[main]/Mediawiki/File[/var/www/html/index.html]: Nothing to manage: no ensure and the resource doesn't exist
Debug: Executing '/usr/bin/git config --get remote.origin.url'
Debug: Executing '/usr/bin/git remote'
Debug: Executing '/usr/bin/git config --get remote.origin.url'
Debug: Executing '/usr/bin/git fetch origin'
Debug: Executing '/usr/bin/git fetch --tags origin'
Debug: Executing '/usr/bin/git rev-parse HEAD'
Debug: Executing '/usr/bin/git tag -l'
Debug: Executing '/usr/bin/git branch -a'
Debug: Executing '/usr/bin/git rev-parse REL1_23'
Dont know why CentOS looking it differently.
Thank you.
My internet connection broken while trying for my first checkout with git into /var/www/html directory and from 2nd attempt onward I have received that error.
I have removed complete /var/www/html with
rm -rf /var/www/html
and issued
puppet agent --verbose --no-daemonize --onetime
and its worked fine.
Related
Am getting the below error when i build a job from Jenkins
Checking out git https://github.airbus.corp/Airbus/6e7c-myAuthoring.git into /var/jenkins_home/workspace/Cognitodeploy#script/e0b7ead5fba7a7068ea08dc5f7f7da6376cbb7d7f46c4a86a940337f63683bdc to read Jenkinsfilecognito
The recommended git tool is: git
using credential git-jenkins-cred
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository https://github.airbus.corp/Airbus/6e7c-myAuthoring.git
> git init /var/jenkins_home/workspace/Cognitodeploy#script/e0b7ead5fba7a7068ea08dc5f7f7da6376cbb7d7f46c4a86a940337f63683bdc # timeout=10
Fetching upstream changes from https://github.airbus.corp/Airbus/6e7c-myAuthoring.git
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_ASKPASS to set credentials
> git fetch --tags --force --progress -- https://github.airbus.corp/Airbus/6e7c-myAuthoring.git +refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://github.airbus.corp/Airbus/6e7c-myAuthoring.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: remote: Enumerating objects: 56900, done.
remote: Counting objects: 0% (1/105)
remote: Counting objects: 1% (2/105)
remote: Counting objects: 2% (3/105)
remote: Counting objects: 3% (4/105)
aining
error: 248 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2675)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2099)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:85)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:619)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:848)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1226)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1308)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:159)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:70)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311)
at hudson.model.ResourceController.execute(ResourceController.java:107)
at hudson.model.Executor.run(Executor.java:449)
ERROR: Error cloning remote repo 'origin'
ERROR: Maximum checkout retry attempts reached, aborting
org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use
at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.using(ScriptApproval.java:489)
at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval$using$0.call(Unknown Source)
at com.splunk.splunkjenkins.UserActionDSL.perform(UserActionDSL.groovy:39)
at com.splunk.splunkjenkins.listeners.LoggingRunListener.onCompleted(LoggingRunListener.java:85)
at hudson.model.listeners.RunListener.lambda$fireCompleted$0(RunListener.java:207)
at jenkins.util.Listeners.lambda$notify$0(Listeners.java:59)
at jenkins.util.Listeners.notify(Listeners.java:67)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:205)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:627)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:362)
at hudson.model.ResourceController.execute(ResourceController.java:107)
at hudson.model.Executor.run(Executor.java:449)
Finished: FAILURE
Note: I have already set up a behaviour to wipe workspace repository and force clone while triggering the job.
Kindly let me know what other measures would be required to overcome this issue
The pre-commit run suddenly fails without changes being made to the pre-commit configuration file. The log shows the following error message when attempting to initialise the environment for Flake8:
...
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8.git.
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'fetch', 'origin', '--tags')
return code: 128
expected return code: 0
stdout: (none)
stderr:
fatal: could not read Username for 'https://gitlab.com': No such device or address
...
The pre-commit configuration file includes the following entry:
---
repos:
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.9.2
hooks:
- id: flake8
exclude: 'tests|env|docs'
The Flake8 project has moved to GitHub and requires updating the repository URL in the pre-commit configuration file:
---
repos:
- repo: https://github.com/pycqa/flake8.git
rev: 3.9.2
hooks:
- id: flake8
exclude: 'tests|env|docs'
Try
Hello there
I tried to build a linux with yocto. Usually, I use the command bitbake core-image-minimal and have no errors. Now, I'd like to use the realtime kernel version.
So I added the following lines in build/conf/local.conf according to this post:
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
COMPATIBLE_MACHINE_cyclone5 = "cyclone5"
COMPATIBLE_MACHINE_quilt-native = "cyclone5"
(I only changed the MACHINE to cyclone5 instead of beaglebone)
Error
The command bitbake core-image-rt throws the following error:
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 1339 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "cyclone5"
DISTRO = "poky"
DISTRO_VERSION = "2.2"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta
meta-poky
meta-yocto-bsp = "HEAD:73454473d7c286c41ee697f74052fed03c79f9f5"
meta-altera = "HEAD:ab2ee2812670be650d6a722de08dff9bf05131f8"
meta-ines = "master:819761a62e69ad09a14d877e2b9d9bbd5370b9e2"
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: stress-1.0.4-r0 do_fetch: Failed to fetch URL http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz, attempting MIRRORS if available
WARNING: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/linux-yocto-4.8.git;branch=standard/preempt-rt/base;name=machine, attempting MIRRORS if available
WARNING: rt-tests-1_1.1-r0 do_fetch: Failed to fetch URL git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git, attempting MIRRORS if available
ERROR: stress-1.0.4-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/mc2/XYZ_Project_Verification/yocto/build/downloads 'http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz' --progress=dot -v failed with exit code 4, output:
--2017-11-08 17:29:51-- http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz
Resolving people.seas.harvard.edu (people.seas.harvard.edu)... 54.172.197.41
Connecting to people.seas.harvard.edu (people.seas.harvard.edu)|54.172.197.41|:80... failed: Connection refused.
ERROR: stress-1.0.4-r0 do_fetch: Fetcher failure for URL: 'http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz'. Unable to fetch URL from any source.
ERROR: stress-1.0.4-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/armv7a-neon-poky-linux-gnueabi/stress/1.0.4-r0/temp/log.do_fetch.25139
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-extended/stress/stress_1.0.4.bb:do_fetch) failed with exit code '1'
ERROR: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.yoctoproject.org/linux-yocto-4.8.git /home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.yoctoproject.org.linux-yocto-4.8.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.yoctoproject.org.linux-yocto-4.8.git'...
fatal: unable to connect to git.yoctoproject.org:
git.yoctoproject.org[0: 140.211.169.56]: errno=Connection refused
ERROR: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Fetcher failure for URL: 'git://git.yoctoproject.org/linux-yocto-4.8.git;branch=standard/preempt-rt/base;name=machine'. Unable to fetch URL from any source.
ERROR: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-yocto-rt/4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0/temp/log.do_fetch.25135
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb:do_fetch) failed with exit code '1'
ERROR: rt-tests-1_1.1-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git /home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git'...
fatal: unable to connect to git.kernel.org:
git.kernel.org[0: 147.75.205.195]: errno=Connection refused
git.kernel.org[1: 2604:1380:2000:f000::7]: errno=Network is unreachable
ERROR: rt-tests-1_1.1-r0 do_fetch: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git'. Unable to fetch URL from any source.
ERROR: rt-tests-1_1.1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/armv7a-neon-poky-linux-gnueabi/rt-tests/1_1.1-r0/temp/log.do_fetch.25136
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/rt-tests_1.1.bb:do_fetch) failed with exit code '1'
WARNING: hwlatdetect-1_1.1-r0 do_fetch: Failed to fetch URL git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git, attempting MIRRORS if available
ERROR: hwlatdetect-1_1.1-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git /home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git'...
fatal: unable to connect to git.kernel.org:
git.kernel.org[0: 147.75.205.195]: errno=Connection refused
git.kernel.org[1: 2604:1380:2000:f000::7]: errno=Network is unreachable
ERROR: hwlatdetect-1_1.1-r0 do_fetch: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git'. Unable to fetch URL from any source.
ERROR: hwlatdetect-1_1.1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/armv7a-neon-poky-linux-gnueabi/hwlatdetect/1_1.1-r0/temp/log.do_fetch.25140
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/hwlatdetect_1.1.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1353 tasks of which 1349 didn't need to be rerun and 4 failed.
Summary: 4 tasks failed:
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-extended/stress/stress_1.0.4.bb:do_fetch
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb:do_fetch
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/rt-tests_1.1.bb:do_fetch
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/hwlatdetect_1.1.bb:do_fetch
Summary: There were 4 WARNING messages shown.
Summary: There were 12 ERROR messages shown, returning a non-zero exit code.
I already checked the bb file. There is a linux-yocto_rt_4.8.bb file in yocto/poky/meta/recipes-kernel/linux
Any hints or suggestions how to solve this issue? Thanks in advance.
your error seems to fetching problem. Please connect internet it will solve your prblem.
I want to manage the contents of the carbon.conf file using Augeas from Puppet. I have used Augeas before in Puppet for managing an xml file and that worked great.
However this time when the puppet catalog is applied, nothing happens to the carbon.conf file. There is also no error in the log.
Here's my code in the puppet manifest file:
augeas { 'cache config':
notify => Service[carbon-cache],
incl => '/opt/graphite/conf/carbon.conf',
context => '/cache',
lens => 'Carbon.lns',
changes => [
"set UDP_RECEIVER_PORT 2013",
"set LINE_RECEIVER_PORT 2013",
"set PICKLE_RECEIVER_PORT 2014",
];
}
And in the debug log I can see the following:
Debug: Augeas[cache config](provider=augeas): Opening augeas with root /, lens path /var/lib/puppet/lib/augeas/lenses, flags 64
Debug: Augeas[cache config](provider=augeas): Augeas version 1.0.0 is installed
Debug: Augeas[cache config](provider=augeas): Will attempt to save and only run if files changed
Debug: Augeas[cache config](provider=augeas): sending command 'set' with params ["/cache/UDP_RECEIVER_PORT", "2013"]
Debug: Augeas[cache config](provider=augeas): sending command 'set' with params ["/cache/LINE_RECEIVER_PORT", "2013"]
Debug: Augeas[cache config](provider=augeas): sending command 'set' with params ["/cache/PICKLE_RECEIVER_PORT", "2014"]
Debug: Augeas[cache config](provider=augeas): Skipping because no files were changed
Debug: Augeas[cache config](provider=augeas): Closed the augeas connection
What am I missing here?
I also noticed that when using augtool from the command line the ls /files/ command only lists the following folders
augtool> ls /files/
etc/ = (none)
usr/ = (none)
boot/ = (none)
I would also expect to see /opt here...
Context needs to contain the full path to the base node you want for relative paths. In your case, I'm guessing you want context to be /files/opt/graphite/conf/carbon.conf/cache
I have a fresh install of the garethr-docker repo using command
puppet module install garethr/docker.
My puppet nodes.pp that I am running is very very simple:
include 'docker'
The logs look like they initialize the conf correctly; however, it's unable to reschedule the service. Please see the logs below
debug: /Stage[main]/Docker::Service/File[/etc/init/docker.conf]/content: Executing 'diff -u /etc/init/docker.conf /tmp/puppet-file20140305-9166-j634yb-0'
notice: /Stage[main]/Docker::Service/File[/etc/init/docker.conf]/content:
--- /etc/init/docker.conf 2014-03-05 18:00:12.141549000 +0000
+++ /tmp/puppet-file20140305-9166-j634yb-0 2014-03-05 18:08:46.997549000 +0000
## -6,6 +6,6 ##
respawn
script
- /usr/bin/docker -d -g /dap-home/docker -H unix:///var/run/docker.sock
+ /usr/bin/docker -d -H unix:///var/run/docker.sock
end script
debug: Finishing transaction 70136334948320
info: FileBucket got a duplicate file {md5}35cd6455aae3a3bc020b4db1e9839271
info: /Stage[main]/Docker::Service/File[/etc/init/docker.conf]: Filebucketed /etc/init/docker.conf to puppet with sum 35cd6455aae3a3bc020b4db1e9839271
notice: /Stage[main]/Docker::Service/File[/etc/init/docker.conf]/content: content changed '{md5}35cd6455aae3a3bc020b4db1e9839271' to '{md5}e6ce3c01ccf99456fc57176f1895f808'
info: /Stage[main]/Docker::Service/File[/etc/init/docker.conf]: Scheduling refresh of Service[docker]
debug: /Stage[main]/Docker::Service/File[/etc/init/docker.conf]: The container Class[Docker::Service] will propagate my refresh event
debug: Puppet::Type::Service::ProviderUpstart: Executing '/sbin/status docker'
debug: Puppet::Type::Service::ProviderUpstart: Executing '/sbin/initctl --version'
err: /Stage[main]/Docker::Service/Service[docker]: Could not evaluate: undefined method `[]' for nil:NilClass
It should be noted (not that it really matters), that he machine that docker is being installed on is in fact a Docker container. The container that is the puppet agent is being run with the -privileged.