[Bug 1836707] Re: LXD Storage pool on an NFS share strange user mapping

2019-07-24 Thread Brad Figg
** Tags added: ubuntu-certified

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836707

Title:
  LXD Storage pool on an NFS share strange user mapping

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1836707/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1836707] Re: LXD Storage pool on an NFS share strange user mapping

2019-07-16 Thread Matthew Cooper
Hi

Tested on 19.04 and 19.10 (updated) and the same problem exists

19.04
==
root@crack-sheep:~# touch test
root@crack-sheep:~# ls -la
total 50
drwx--  3 root   root6 Jul 16 11:58 .
drwxr-xr-x 22 root   root   22 Jun 27 16:28 ..
-rw-r--r--  1 root   root 3106 Apr  9  2018 .bashrc
-rw-r--r--  1 root   root  148 Aug 17  2015 .profile
drwx--  2 root   root3 Jul 16 11:57 .ssh
-rw-r--r--  1 nobody root0 Jul 16 11:58 test
root@crack-sheep:~# chown root test
root@crack-sheep:~# la -lan
total 50
drwx--  3 0 06 Jul 16 11:58 .
drwxr-xr-x 22 0 0   22 Jun 27 16:28 ..
-rw-r--r--  1 0 0 3106 Apr  9  2018 .bashrc
-rw-r--r--  1 0 0  148 Aug 17  2015 .profile
drwx--  2 0 03 Jul 16 11:57 .ssh
-rw-r--r--  1 0 00 Jul 16 11:58 test
root@crack-sheep:~# la -la
total 50
drwx--  3 root root6 Jul 16 11:58 .
drwxr-xr-x 22 root root   22 Jun 27 16:28 ..
-rw-r--r--  1 root root 3106 Apr  9  2018 .bashrc
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
drwx--  2 root root3 Jul 16 11:57 .ssh
-rw-r--r--  1 root root0 Jul 16 11:58 test

19.10


root@first-flamingo:~# touch test
root@first-flamingo:~# ls -la
total 50
drwx--  3 root   root6 Jul 16 11:57 .
drwxr-xr-x 22 root   root   22 Jun 27 16:28 ..
-rw-r--r--  1 root   root 3106 Apr  9  2018 .bashrc
-rw-r--r--  1 root   root  148 Aug 17  2015 .profile
drwx--  2 root   root3 Jul 16 11:56 .ssh
-rw-r--r--  1 nobody root0 Jul 16 11:57 test
root@first-flamingo:~# chown root test
root@first-flamingo:~# ls -la
total 73
drwx--  3 root root6 Jul 16 11:57 .
drwxr-xr-x 22 root root   22 Jun 27 16:28 ..
-rw-r--r--  1 root root 3106 Apr  9  2018 .bashrc
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
drwx--  2 root root3 Jul 16 11:56 .ssh
-rw-r--r--  1 root root0 Jul 16 11:57 test

Matthew

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836707

Title:
  LXD Storage pool on an NFS share strange user mapping

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1836707/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1836707] Re: LXD Storage pool on an NFS share strange user mapping

2019-07-16 Thread Matthew Cooper
I have run the command on both the host and in the lxd container

Host is m-node-01
lxd container is touching-weevil

Matthew

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836707

Title:
  LXD Storage pool on an NFS share strange user mapping

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1836707/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1836707] Re: LXD Storage pool on an NFS share strange user mapping

2019-07-16 Thread Matthew Cooper
apport information

** Tags added: apport-collected bionic uec-images

** Description changed:

  Hi
  
  Ref: 18.04 LTS
  
  I originally posted this problem on JUJU discourse
  (https://discourse.jujucharms.com/t/lxc-with-nfs-storage-pool-fail-
  bootstrap-and-deploy/1654) but then move to LXD issue
  (https://github.com/lxc/lxd/issues/5962).
  
  The problem is when an LXD container has a storage pool on an NFS share
  is dir mode creating files either touch, vim, ... the UID of the file is
  set to nobody but chown of the file to root fixes the problem.
  
  I am in the process of testing 19.04 and 19.10 as well.
  
  Matthew
  
  
  Here is the report from LXD issue.
  
  
  
   Required information
  
  Distribution:Ubuntu
  Distribution version: 18.04 LTS
  The output of "lxc info" or if that fails:
  config:
  core.https_address: 10.0.4.1:8443
  core.trust_password: true
  maas.api.key: 
  maas.api.url: http://*:5240/MAAS
  api_extensions:
  storage_zfs_remove_snapshots
  container_host_shutdown_timeout
  container_stop_priority
  container_syscall_filtering
  auth_pki
  container_last_used_at
  etag
  patch
  usb_devices
  https_allowed_credentials
  image_compression_algorithm
  directory_manipulation
  container_cpu_time
  storage_zfs_use_refquota
  storage_lvm_mount_options
  network
  profile_usedby
  container_push
  container_exec_recording
  certificate_update
  container_exec_signal_handling
  gpu_devices
  container_image_properties
  migration_progress
  id_map
  network_firewall_filtering
  network_routes
  storage
  file_delete
  file_append
  network_dhcp_expiry
  storage_lvm_vg_rename
  storage_lvm_thinpool_rename
  network_vlan
  image_create_aliases
  container_stateless_copy
  container_only_migration
  storage_zfs_clone_copy
  unix_device_rename
  storage_lvm_use_thinpool
  storage_rsync_bwlimit
  network_vxlan_interface
  storage_btrfs_mount_options
  entity_description
  image_force_refresh
  storage_lvm_lv_resizing
  id_map_base
  file_symlinks
  container_push_target
  network_vlan_physical
  storage_images_delete
  container_edit_metadata
  container_snapshot_stateful_migration
  storage_driver_ceph
  storage_ceph_user_name
  resource_limits
  storage_volatile_initial_source
  storage_ceph_force_osd_reuse
  storage_block_filesystem_btrfs
  resources
  kernel_limits
  storage_api_volume_rename
  macaroon_authentication
  network_sriov
  console
  restrict_devlxd
  migration_pre_copy
  infiniband
  maas_network
  devlxd_events
  proxy
  network_dhcp_gateway
  file_get_symlink
  network_leases
  unix_device_hotplug
  storage_api_local_volume_handling
  operation_description
  clustering
  event_lifecycle
  storage_api_remote_volume_handling
  nvidia_runtime
  candid_authentication
  candid_config
  candid_config_key
  usb_optional_vendorid
  api_status: stable
  api_version: "1.0"
  auth: trusted
  public: false
  auth_methods:
  tls
  environment:
  addresses:
  10.0.4.1:8443
  architectures:
  x86_64
  i686
  certificate: |
  -BEGIN CERTIFICATE-
  -END CERTIFICATE-
  certificate_fingerprint:
  driver: lxc
  driver_version: 3.0.3
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.15.0-54-generic
  server: lxd
  server_pid: 30277
  server_version: 3.0.3
  storage: dir
  storage_version: "1"
  server_clustered: true
  server_name: m-node-01
  project: ""
  UID mapping incorrect when creating a file.
  
  When touching or creating a file with vim (or any other method) is
  created with the UID on nobody (65534) but other files are all correct
  the startup. The correct UID can be set by chown of the file
  
  Steps to reproduce
  
  Create container (lxc launch -s nfs ubuntu:18.04)
  Access container ( lxc exec modest-ladybug -- sudo /bin/bash )
  touch file (touch test)
  list dir (ls -la)
  root@modest-ladybug:~# ls -la
  total 50
  drwx--  3 root   root6 Jul 15 21:18 .
  drwxr-xr-x 22 root   root   22 Jun 27 16:28 ..
  -rw-r--r--  1 root   root 3106 Apr  9  2018 .bashrc
  -rw-r--r--  1 root   root  148 Aug 17  2015 .profile
  drwx--  2 root   root3 Jul 15 21:17 .ssh
  -rw-r--r--  1 nobody root0 Jul 15 21:18 test
  Change own (chown root:root test)
  root@modest-ladybug:~# ls -la
  total 50
  drwx--  3 root root6 Jul 15 21:18 .
  drwxr-xr-x 22 root root   22 Jun 27 16:28 ..
  -rw-r--r--  1 root root 3106 Apr  9  2018 .bashrc
  -rw-r--r--  1 root root  148 Aug 17  2015 .profile
  drwx--  2 root root3 Jul 15 21:17 .ssh
  -rw-r--r--  1 root root0 Jul 15 21:18 test
  Information to attach
  
Container log (lxc info NAME --show-log)
  Name: modest-ladybug
  Location: m-node-02
  Remote: unix://
  Architecture: x86_64
  Created: 2019/07/15 21:15 UTC
  Status: Running
  Type: persistent
  Profiles: default
  Pid: 24080
  Ips:
  eth0: inet10.1.128.8  veth68YBCW
  eth0: inet6   fe80::216:3eff:fee4:bcc0veth68YBCW
  lo:   inet127.0.0.1
  lo:   inet6   ::1

[Bug 1836707] Re: LXD Storage pool on an NFS share strange user mapping

2019-07-16 Thread Colin Watson
This isn't a bug against Launchpad (i.e. the launchpad.net site itself).
Judging from the history of https://github.com/lxc/lxd/issues/5962, it
seems as though Stéphane's view was that it's a kernel bug, so
reassigning there.

** Bug watch added: LXD bug tracker #5962
   https://github.com/lxc/lxd/issues/5962

** Project changed: launchpad => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836707

Title:
  LXD Storage pool on an NFS share strange user mapping

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1836707/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs