<div dir="ltr">Thanks for the reply. It seems like none of the commands work:-<div><br><div><span class="gmail-il" style="font-family:'courier new';font-size:14.666666984558105px">lxc</span><span style="font-family:'courier new';font-size:14.666666984558105px"> profile assign</span><br></div><div><span class="gmail-il" style="font-family:'courier new';font-size:14.666666984558105px">lxc</span><span style="font-family:'courier new';font-size:14.666666984558105px"> profile apply</span><span style="font-family:'courier new';font-size:14.666666984558105px"><br></span></div></div><div><span style="font-family:'courier new';font-size:14.666666984558105px"><br></span></div><div><font face="arial, helvetica, sans-serif">I am going to setup my (test) pre-production environment today and take another look at the profiles again on that environment.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Regards, Gabriel</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 22, 2017 at 2:03 PM, Jamie Brown <span dir="ltr"><<a href="mailto:Jamie.Brown@mpec.co.uk" target="_blank">Jamie.Brown@mpec.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-5394471882486388758WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">This may not be the answer but I think the client commands for applying profiles have changed, so depending on your version it could be that you need to use one of;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile assign [<remote>:]<container> <profiles><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile add [<remote>:]<container> <profile><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile remove [<remote>:]<container> <profile><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Rather than
</span><span style="font-size:11.0pt;font-family:"Courier New"">lxc profile apply</span><span style="font-size:11.0pt;font-family:Calibri">.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">lxc-users <<a href="mailto:lxc-users-bounces@lists.linuxcontainers.org" target="_blank">lxc-users-bounces@lists.<wbr>linuxcontainers.org</a>> on behalf of Gabriel Marais <<a href="mailto:gabriel.j.marais@gmail.com" target="_blank">gabriel.j.marais@gmail.com</a>><br>
<b>Reply-To: </b>LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a>><br>
<b>Date: </b>Wednesday, 22 March 2017 at 11:50<br>
<b>To: </b>"<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a>" <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.<wbr>linuxcontainers.org</a>><br>
<b>Subject: </b>[lxc-users] Profile Assignment Error<u></u><u></u></span></p>
</div><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Hi Guys <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am having an issue assigning a profile to a container. Below my steps:-<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">1. List Profiles<u></u><u></u></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:43:12]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33bbc8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34bc26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#afad24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile list<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| NAME | USED BY |<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| default | 0 |<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| docker | 0 |<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+---------+---------+<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">2. Create a new Profile<u></u><u></u></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:43:18]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33bbc8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34bc26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#afad24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile create migratetest<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">Profile migratetest created<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black"><br>
<br>
<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:46:47]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33bbc8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34bc26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#afad24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile list<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| NAME | USED BY |<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| default | 0 |<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| docker | 0 |<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">| migratetest | 0 |<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">+-------------+---------+<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:48:47]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33bbc8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34bc26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#afad24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc-ls --fancy<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">NAME STATE AUTOSTART GROUPS IPV4 IPV6 <u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">paulus-test STOPPED 0 - - - <u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">snappy_1604 STOPPED 0 - - - <u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">ubuntu_1404 STOPPED 0 - - - <u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">ubuntu_1604 STOPPED 0 - - - <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black"><br>
<br>
<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">3. Link the container to the profile<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[13:45:21]
</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33bbc8">root</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">@</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:#34bc26">vm-server-01:</span><b><span style="font-size:8.5pt;font-family:"menlo","serif";color:#afad24">~</span></b><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">
# lxc profile apply ubuntu_1404 migratetest --debug<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33bbc8">DBUG</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[03-22|13:46:47] Raw response: {"type":"sync","status":"<wbr>Success","status_code":200,"<wbr>operation":"","error_code":0,"<wbr>error":"","metadata":{"config"<wbr>:{"core.trust_password":true,"<wbr>images.auto_update_cached":"<wbr>false","images.auto_update_<wbr>interval":"24","images.remote_<wbr>cache_expiry":"5"},"api_<wbr>extensions":["storage_zfs_<wbr>remove_snapshots","container_<wbr>host_shutdown_timeout","<wbr>container_syscall_filtering","<wbr>auth_pki","container_last_<wbr>used_at","etag","patch","usb_<wbr>devices","https_allowed_<wbr>credentials","image_<wbr>compression_algorithm","<wbr>directory_manipulation","<wbr>container_cpu_time","storage_<wbr>zfs_use_refquota","storage_<wbr>lvm_mount_options","network","<wbr>profile_usedby","container_<wbr>push","container_exec_<wbr>recording","certificate_<wbr>update","container_exec_<wbr>signal_handling","gpu_devices"<wbr>,"container_image_properties",<wbr>"migration_progress","id_map",<wbr>"network_firewall_filtering","<wbr>network_routes","storage","<wbr>file_delete","file_append","<wbr>network_dhcp_expiry","storage_<wbr>lvm_vg_rename","storage_lvm_<wbr>thinpool_rename","network_<wbr>vlan","image_create_aliases","<wbr>container_stateless_copy"],"<wbr>api_status":"stable","api_<wbr>version":"1.0","auth":"<wbr>trusted","public":false,"<wbr>environment":{"addresses":[],"<wbr>architectures":["x86_64","<wbr>i686"],"certificate":"-----<wbr>BEGIN
CERTIFICATE-----\<wbr>nMIIFXjCCA0agAwIBAgIQE9+<wbr>oSwckHm0nytRugNyHnTANBgkqhkiG9<wbr>w0BAQsFADA6\<wbr>nMRwwGgYDVQQKExNsaW51eGNvbnRha<wbr>W5lcnMub3JnMRowGAYDVQQDDBFyb29<wbr>0QHZt\<wbr>nLXNlcnZlci0wMTAeFw0xNzAzMjIwO<wbr>TI3NTJaFw0yNzAzMjAwOTI3NTJaMDo<wbr>xHDAa\<wbr>nBgNVBAoTE2xpbnV4Y29udGFpbmVyc<wbr>y5vcmcxGjAYBgNVBAMMEXJvb3RAdm0<wbr>tc2Vy\<wbr>ndmVyLTAxMIICIjANBgkqhkiG9w0BA<wbr>QEFAAOCAg8AMIICCgKCAgEArHikisF<wbr>du0cq\nsgZw+n1jhyLf/C8H+<wbr>ANs5eWHxStqSY/wShQSY7mujVLhvu/<wbr>mM/awGmbeqISwGskN\<wbr>nsVBC7fkCqWf3vf/<wbr>n6FlzOWwD1x3FSGqYfAbO+<wbr>uXFQxsYA6BZQiUjhtEb/4Ks2ok2\<wbr>nil/<wbr>t5IfBaEtIO25ES4jw2U1pytOd63Eu2<wbr>5B9wMmX4k/vj5n/Nk/<wbr>PQgVkz3VHNCXm\<wbr>nqDMnH0rOCPjP8Tr1ZYMruVxZ9Q1GF<wbr>R+BGvomDKzLYRmJJnToJJMmva+qmv+<wbr>Mg3Md\<wbr>nS9L1WXTd7S888SVNQm6lK5R/<wbr>NPkKkEkA92Z926pVI3irpL9dfvLxO+<wbr>5ph2rjppZO\n3+UO+g4MIfZbznA9+<wbr>FF9Sac7/<wbr>qymmRUkqZMvWyBRWOSYhRcEMrpCBIn<wbr>8xJPLbtmL\n1vEC2C/<wbr>OSDDrwvAb29nWjg6AkXX+<wbr>E7AbJzlJd4VUPhoDJJNTs+<wbr>bQ350SaeXV9JED\<wbr>nreQj0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VbAQMhuGPK+xNQ/6Yy+<wbr>TLij70j1HI1\<wbr>ngHuAUrxfsIbRzKXUq7m2KMopedcRH<wbr>eeWgGsAbI45F4w2QFBTtFz+<wbr>9i3NMixtLL3a\<wbr>nD7lR6v71VjhuGeUecCY8XZmq1DQsc<wbr>OgKPdqCX+<wbr>LV2lQ82JdTACk4G5aAP0RnwG3k\nm/<wbr>UgEHt84g+<wbr>L1gHDkKS1N4EhekK8tGiLXebJnuRYT<wbr>lG/4A==\n-----END
CERTIFICATE-----\n","<wbr>certificate_fingerprint":"","<wbr>driver":"lxc","driver_version"<wbr>:"2.0.7","kernel":"Linux","<wbr>kernel_architecture":"x86_64",<wbr>"kernel_version":"4.4.0-62-<wbr>generic","server":"lxd","<wbr>server_pid":1555,"server_<wbr>version":"2.12","storage":"","<wbr>storage_version":""}}}<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"menlo","serif";color:black"> <u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"menlo","serif";color:#33bbc8">DBUG</span><span style="font-size:8.5pt;font-family:"menlo","serif";color:black">[03-22|13:46:47] Raw response: {"error":"not found","error_code":404,"type"<wbr>:"error"}<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Even with the container started, I get the same error. Can someone perhaps point me in the right direction?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks, Gabriel<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a><br></blockquote></div><br></div>