Here is the output I get from lxc monitor
on server1, after running this command:
lxc copy server2:testmoveb local:
metadata:
context:
ip: ‘@’
method: GET
url: /1.0
level: dbug
message: handling
timestamp: “2019-02-06T08:08:20.608781997-08:00”
type: logging
metadata:
context:
ip: ‘@’
method: GET
url: /1.0/events
level: dbug
message: handling
timestamp: “2019-02-06T08:08:20.813564411-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘New event listener: 9ac1276a-91cd-416a-ae12-d17dd1e784a7’
timestamp: “2019-02-06T08:08:20.813642739-08:00”
type: logging
metadata:
context: {}
level: dbug
message: Responding to container create
timestamp: “2019-02-06T08:08:20.81438811-08:00”
type: logging
metadata:
context:
ip: ‘@’
method: POST
url: /1.0/containers
level: dbug
message: handling
timestamp: “2019-02-06T08:08:20.81436362-08:00”
type: logging
metadata:
context: {}
level: dbug
message: No valid storage pool in the container’s local root disk device and profiles
found
timestamp: “2019-02-06T08:08:20.816575864-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Database error: &errors.errorString{s:“sql: no rows in result set”}’
timestamp: “2019-02-06T08:08:20.816868704-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Database error: &errors.errorString{s:“sql: no rows in result set”}’
timestamp: “2019-02-06T08:08:20.817361751-08:00”
type: logging
metadata:
context:
ephemeral: “false”
name: testmoveb
level: info
message: Creating container
timestamp: “2019-02-06T08:08:20.857552147-08:00”
type: logging
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:20.874942161-08:00”
type: lifecycle
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:20.885870295-08:00”
type: lifecycle
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:20.888423808-08:00”
type: lifecycle
metadata:
context: {}
level: dbug
message: Creating empty DIR storage volume for container “testmoveb” on storage
pool “default”
timestamp: “2019-02-06T08:08:20.889963009-08:00”
type: logging
metadata:
action: container-created
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:20.889954587-08:00”
type: lifecycle
metadata:
context:
ephemeral: “false”
name: testmoveb
level: info
message: Created container
timestamp: “2019-02-06T08:08:20.889941451-08:00”
type: logging
metadata:
context: {}
level: dbug
message: Created empty DIR storage volume for container “testmoveb” on storage pool
“default”
timestamp: “2019-02-06T08:08:20.900941216-08:00”
type: logging
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:20.900924911-08:00”
type: lifecycle
metadata:
context:
name: testmoveb
level: warn
message: Unable to update backup.yaml at this time
timestamp: “2019-02-06T08:08:20.900994597-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Started task operation: 424ec520-cecf-4946-acb4-7bba1e5b05f9’
timestamp: “2019-02-06T08:08:20.901756132-08:00”
type: logging
metadata:
class: task
created_at: “2019-02-06T08:08:20.90111272-08:00”
description: Creating container
err: “”
id: 424ec520-cecf-4946-acb4-7bba1e5b05f9
may_cancel: false
metadata: null
resources:
containers:
- /1.0/containers/testmoveb
status: Running
status_code: 103
updated_at: “2019-02-06T08:08:20.90111272-08:00”
timestamp: “2019-02-06T08:08:20.901763719-08:00”
type: operation
metadata:
class: task
created_at: “2019-02-06T08:08:20.90111272-08:00”
description: Creating container
err: “”
id: 424ec520-cecf-4946-acb4-7bba1e5b05f9
may_cancel: false
metadata: null
resources:
containers:
- /1.0/containers/testmoveb
status: Pending
status_code: 105
updated_at: “2019-02-06T08:08:20.90111272-08:00”
timestamp: “2019-02-06T08:08:20.90173642-08:00”
type: operation
metadata:
context: {}
level: dbug
message: ‘New task operation: 424ec520-cecf-4946-acb4-7bba1e5b05f9’
timestamp: “2019-02-06T08:08:20.901720099-08:00”
type: logging
metadata:
context:
ip: ‘@’
method: GET
url: /1.0/operations/424ec520-cecf-4946-acb4-7bba1e5b05f9
level: dbug
message: handling
timestamp: “2019-02-06T08:08:20.902379723-08:00”
type: logging
metadata:
context: {}
level: eror
message: 'Rsync receive failed: /var/lib/lxd/containers/testmoveb/: exit status
12: ’
timestamp: “2019-02-06T08:08:21.164032977-08:00”
type: logging
metadata:
context: {}
level: dbug
message: sending write barrier
timestamp: “2019-02-06T08:08:21.163908821-08:00”
type: logging
metadata:
context: {}
level: dbug
message: Got message barrier, resetting stream
timestamp: “2019-02-06T08:08:21.164502831-08:00”
type: logging
metadata:
context:
err: exit status 12
level: eror
message: Error during migration sink
timestamp: “2019-02-06T08:08:21.164739883-08:00”
type: logging
metadata:
context:
created: 2019-02-06 08:08:20 -0800 PST
ephemeral: “false”
name: testmoveb
used: 1969-12-31 16:00:00 -0800 PST
level: info
message: Deleting container
timestamp: “2019-02-06T08:08:21.164885192-08:00”
type: logging
metadata:
context: {}
level: dbug
message: Deleting DIR storage volume for container “testmoveb” on storage pool “default”
timestamp: “2019-02-06T08:08:21.169015842-08:00”
type: logging
metadata:
context: {}
level: dbug
message: Deleted DIR storage volume for container “testmoveb” on storage pool “default”
timestamp: “2019-02-06T08:08:21.169290288-08:00”
type: logging
metadata:
action: container-deleted
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:21.205066269-08:00”
type: lifecycle
metadata:
context: {}
level: dbug
message: ‘Failure for task operation: 424ec520-cecf-4946-acb4-7bba1e5b05f9: Error
transferring container data: exit status 12’
timestamp: “2019-02-06T08:08:21.205080657-08:00”
type: logging
metadata:
class: task
created_at: “2019-02-06T08:08:20.90111272-08:00”
description: Creating container
err: ‘Error transferring container data: exit status 12’
id: 424ec520-cecf-4946-acb4-7bba1e5b05f9
may_cancel: false
metadata: null
resources:
containers:
- /1.0/containers/testmoveb
status: Failure
status_code: 400
updated_at: “2019-02-06T08:08:20.90111272-08:00”
timestamp: “2019-02-06T08:08:21.205090232-08:00”
type: operation
metadata:
context:
created: 2019-02-06 08:08:20 -0800 PST
ephemeral: “false”
name: testmoveb
used: 1969-12-31 16:00:00 -0800 PST
level: info
message: Deleted container
timestamp: “2019-02-06T08:08:21.205052879-08:00”
type: logging
metadata:
context:
ip: ‘@’
method: POST
url: /1.0/containers
level: dbug
message: handling
timestamp: “2019-02-06T08:08:21.205749438-08:00”
type: logging
metadata:
context: {}
level: dbug
message: Responding to container create
timestamp: “2019-02-06T08:08:21.205768776-08:00”
type: logging
metadata:
context: {}
level: dbug
message: No valid storage pool in the container’s local root disk device and profiles
found
timestamp: “2019-02-06T08:08:21.206709359-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Database error: &errors.errorString{s:“sql: no rows in result set”}’
timestamp: “2019-02-06T08:08:21.206860092-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Database error: &errors.errorString{s:“sql: no rows in result set”}’
timestamp: “2019-02-06T08:08:21.207088902-08:00”
type: logging
metadata:
context:
ephemeral: “false”
name: testmoveb
level: info
message: Creating container
timestamp: “2019-02-06T08:08:21.217731918-08:00”
type: logging
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:21.226541232-08:00”
type: lifecycle
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:21.249593351-08:00”
type: lifecycle
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:21.252207526-08:00”
type: lifecycle
metadata:
context: {}
level: dbug
message: Creating empty DIR storage volume for container “testmoveb” on storage
pool “default”
timestamp: “2019-02-06T08:08:21.254517182-08:00”
type: logging
metadata:
context:
ephemeral: “false”
name: testmoveb
level: info
message: Created container
timestamp: “2019-02-06T08:08:21.254478493-08:00”
type: logging
metadata:
action: container-created
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:21.254503819-08:00”
type: lifecycle
metadata:
action: container-updated
source: /1.0/containers/testmoveb
timestamp: “2019-02-06T08:08:21.267361871-08:00”
type: lifecycle
metadata:
context: {}
level: dbug
message: Created empty DIR storage volume for container “testmoveb” on storage pool
“default”
timestamp: “2019-02-06T08:08:21.267379561-08:00”
type: logging
metadata:
context:
name: testmoveb
level: warn
message: Unable to update backup.yaml at this time
timestamp: “2019-02-06T08:08:21.267438627-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘New task operation: 52ee72a3-2cab-4d4c-8bc5-226c84cc9354’
timestamp: “2019-02-06T08:08:21.268177851-08:00”
type: logging
metadata:
class: task
created_at: “2019-02-06T08:08:21.267574763-08:00”
description: Creating container
err: “”
id: 52ee72a3-2cab-4d4c-8bc5-226c84cc9354
may_cancel: false
metadata: null
resources:
containers:
- /1.0/containers/testmoveb
status: Pending
status_code: 105
updated_at: “2019-02-06T08:08:21.267574763-08:00”
timestamp: “2019-02-06T08:08:21.268192243-08:00”
type: operation
metadata:
class: task
created_at: “2019-02-06T08:08:21.267574763-08:00”
description: Creating container
err: “”
id: 52ee72a3-2cab-4d4c-8bc5-226c84cc9354
may_cancel: false
metadata: null
resources:
containers:
- /1.0/containers/testmoveb
status: Running
status_code: 103
updated_at: “2019-02-06T08:08:21.267574763-08:00”
timestamp: “2019-02-06T08:08:21.268217024-08:00”
type: operation
metadata:
context: {}
level: dbug
message: ‘Started task operation: 52ee72a3-2cab-4d4c-8bc5-226c84cc9354’
timestamp: “2019-02-06T08:08:21.268209601-08:00”
type: logging
metadata:
context:
ip: ‘@’
method: GET
url: /1.0/operations/52ee72a3-2cab-4d4c-8bc5-226c84cc9354
level: dbug
message: handling
timestamp: “2019-02-06T08:08:21.268876113-08:00”
type: logging
Despite some of those errors, the directory /var/lib/lxd/storage-pools/default/containers/testmoveb is created on server1. But, it is empty.
Both hosts are using the same storage driver:
root@server1:~# lxc storage show default
config:
source: /var/lib/lxd/storage-pools/default
description: “”
name: default
driver: dir
used_by:
- /1.0/containers/testmove
- /1.0/profiles/default
status: Created
locations:
- none
root@server2:~# lxc storage show default
config:
source: /var/lib/lxd/storage-pools/default
description: “”
name: default
driver: dir
used_by:
- /1.0/containers/testmoveb
- /1.0/profiles/default
status: Created
locations:
- none
Here is the lxc monitor
output on server2 when I try to initiate the same copy as mentioned above:
metadata:
context:
k: “3”
level: dbug
message: Found cert
timestamp: “2019-02-06T08:19:30.739379292-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42084
method: GET
url: /1.0
level: dbug
message: handling
timestamp: “2019-02-06T08:19:30.73940823-08:00”
type: logging
metadata:
context:
k: “3”
level: dbug
message: Found cert
timestamp: “2019-02-06T08:19:30.739809239-08:00”
type: logging
metadata:
context:
k: “3”
level: dbug
message: Found cert
timestamp: “2019-02-06T08:19:30.784889406-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42086
method: GET
url: /1.0/containers/testmoveb
level: dbug
message: handling
timestamp: “2019-02-06T08:19:30.784929995-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘New event listener: 0085f851-e090-401f-bd97-fc5a9e92f107’
timestamp: “2019-02-06T08:19:30.823900761-08:00”
type: logging
metadata:
context:
k: “3”
level: dbug
message: Found cert
timestamp: “2019-02-06T08:19:30.82380636-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42088
method: GET
url: /1.0/events
level: dbug
message: handling
timestamp: “2019-02-06T08:19:30.823844754-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42090
method: POST
url: /1.0/containers/testmoveb
level: dbug
message: handling
timestamp: “2019-02-06T08:19:30.860392564-08:00”
type: logging
metadata:
context:
k: “3”
level: dbug
message: Found cert
timestamp: “2019-02-06T08:19:30.860363554-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘New websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:30.895704467-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Started websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:30.895782489-08:00”
type: logging
metadata:
class: websocket
created_at: “2019-02-06T08:19:30.862045548-08:00”
description: Migrating container
err: “”
id: 800cf968-a003-4ece-be53-093e1d0aa82f
may_cancel: false
metadata:
control: 7c51b49a149f6ee51221307e1a6e607f24f79b4b2df43bbfaaee26c95204071a
fs: ee87ce239f58811920dcaef3b2db32451b0e44423177f4dcc51d7c7624809fca
resources:
containers:
- /1.0/containers/testmoveb
status: Pending
status_code: 105
updated_at: “2019-02-06T08:19:30.862045548-08:00”
timestamp: “2019-02-06T08:19:30.895745375-08:00”
type: operation
metadata:
class: websocket
created_at: “2019-02-06T08:19:30.862045548-08:00”
description: Migrating container
err: “”
id: 800cf968-a003-4ece-be53-093e1d0aa82f
may_cancel: false
metadata:
control: 7c51b49a149f6ee51221307e1a6e607f24f79b4b2df43bbfaaee26c95204071a
fs: ee87ce239f58811920dcaef3b2db32451b0e44423177f4dcc51d7c7624809fca
resources:
containers:
- /1.0/containers/testmoveb
status: Running
status_code: 103
updated_at: “2019-02-06T08:19:30.862045548-08:00”
timestamp: “2019-02-06T08:19:30.895804919-08:00”
type: operation
metadata:
context: {}
level: dbug
message: ‘Connected websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:31.021070643-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42092
url: /1.0/operations/800cf968-a003-4ece-be53-093e1d0aa82f/websocket?secret=7c51b49a149f6ee51221307e1a6e607f24f79b4b2df43bbfaaee26c95204071a
level: dbug
message: allowing untrusted GET
timestamp: “2019-02-06T08:19:31.021027105-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Handled websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:31.021148549-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Connected websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:31.044423544-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42094
url: /1.0/operations/800cf968-a003-4ece-be53-093e1d0aa82f/websocket?secret=ee87ce239f58811920dcaef3b2db32451b0e44423177f4dcc51d7c7624809fca
level: dbug
message: allowing untrusted GET
timestamp: “2019-02-06T08:19:31.044373432-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Handled websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:31.044494364-08:00”
type: logging
metadata:
context: {}
level: dbug
message: The other side does not support pre-copy
timestamp: “2019-02-06T08:19:31.04615202-08:00”
type: logging
metadata:
context: {}
level: dbug
message: sending write barrier
timestamp: “2019-02-06T08:19:31.256982148-08:00”
type: logging
metadata:
context: {}
level: dbug
message: Got message barrier, resetting stream
timestamp: “2019-02-06T08:19:31.256866233-08:00”
type: logging
metadata:
context: {}
level: eror
message: |
Rsync send failed: /var/lib/lxd/containers/testmoveb/: exit status 12: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.1.2]
timestamp: “2019-02-06T08:19:31.258288421-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Connected websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:31.348154927-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42096
url: /1.0/operations/800cf968-a003-4ece-be53-093e1d0aa82f/websocket?secret=7c51b49a149f6ee51221307e1a6e607f24f79b4b2df43bbfaaee26c95204071a
level: dbug
message: allowing untrusted GET
timestamp: “2019-02-06T08:19:31.348115637-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Handled websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:31.348249288-08:00”
type: logging
metadata:
context: {}
level: dbug
message: ‘Connected websocket operation: 800cf968-a003-4ece-be53-093e1d0aa82f’
timestamp: “2019-02-06T08:19:31.370432401-08:00”
type: logging
metadata:
context:
ip: 209.41.68.83:42098
url: /1.0/operations/800cf968-a003-4ece-be53-093e1d0aa82f/websocket?secret=ee87ce239f58811920dcaef3b2db32451b0e44423177f4dcc51d7c7624809fca
level: dbug
message: allowing untrusted GET
timestamp: “2019-02-06T08:19:31.370392015-08:00”
type: logging