<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">So in our environment, we use lxc containers for quick test machines. We have a script that will spin up a container and set lxc config based on what we need it to do. We are running into an issue where these config settings are preventing mysql from starting.</p><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><br data-mce-bogus="1"></p><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">This is how the container is created if we need to mount nfs to it.</p><blockquote style="margin: 0.357143em 0px 0.357143em 5px; padding: 0px 8px; color: #4f4f4f; border-left: 2px solid #c5c1ad; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0.357143em 0px 0.357143em 5px; padding: 0px 8px; color: #4f4f4f; border-left: 2px solid #c5c1ad; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><p style="margin: 0px; padding: 0px; font-size: 1em; line-height: 1.42857em;" data-mce-style="margin: 0px; padding: 0px; font-size: 1em; line-height: 1.42857em;">lxc launch "${IMAGE}" "${NAME}"<br style="margin-left: 0px; margin-right: 0px; margin-top: 0px;" data-mce-style="margin-left: 0px; margin-right: 0px; margin-top: 0px;">lxc config set ${NAME} security.privileged true<br style="margin-left: 0px; margin-right: 0px; margin-bottom: 0px;" data-mce-style="margin-left: 0px; margin-right: 0px; margin-bottom: 0px;">lxc config set ${NAME} raw.apparmor 'mount,'</p></blockquote><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><br data-mce-bogus="1"></p><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">The specific mysql error being reported by ansible is<span> </span><code style="font-family: monospace, monospace; font-style: normal; font-weight: normal; margin: 0px 2px; padding: 0px 4px; border: 1px solid #e6e6de; background-color: #ffffff; border-radius: 2px; white-space: nowrap; word-break: normal; line-height: 1em;" data-mce-style="font-family: monospace, monospace; font-style: normal; font-weight: normal; margin: 0px 2px; padding: 0px 4px; border: 1px solid #e6e6de; background-color: #ffffff; border-radius: 2px; white-space: nowrap; word-break: normal; line-height: 1em;">invoke-rc.d: initscript mysql, action \"start\" failed.</code></p><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><br data-mce-bogus="1"></p><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">Now if I just launch the container without the two config lines then when I run an ansible playbook that calls and sets up mysql, there is no mysql error and it actually started without error. So I tested to see which one of these lines was causing mysql to throw a fit. But it appears to be when both of these configs are set. If I just run one config line (doesn't matter which) then there is no error. The error only appears when both of these are ran.</p><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><br data-mce-bogus="1"></p><p style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: rgb(34, 34, 34); font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" data-mce-style="margin: 0px; padding: 0px; font-size: 14px; line-height: 1.42857em; color: #222222; font-family: verdana, arial, helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">We initially did not suspect lxc configs to be messing with mysql. But found this by setting up identical containers and doing the same tasks except for these lines. And our playbooks that start mysql don't need nfs so we aren't really blocking on this, but is an interesting issue. Does anybody have any idea why these would be preventing mysql from starting?</p><br></div><div><br></div><div data-marker="__SIG_PRE__">Jake Black<br>Associate System Administrator </div></div></body></html>