Payload with multiple user activities: only one is carried out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
High
|
Free Ekanayaka | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jaunty |
Fix Released
|
Undecided
|
Unassigned | ||
Karmic |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It was first seen when deleting several users in one big activity. Only one user would be deleted.
After some experimenting, turns out that whenever more than one user related activity is in a payload, only one is carried out.
Here is an example for the deleting multiple users case:
2010-08-18 10:48:28,434 DEBUG [Dummy-1 ] Received payload:
{'client-
'messages': [{'delete-home': True,
'next-
'server-uuid': '7c6efe47-
2010-08-18 10:48:28,439 INFO [MainThread] Switching to normal exchange mode.
2010-08-18 10:48:28,537 DEBUG [MainThread] Started firing message.
2010-08-18 10:48:28,537 DEBUG [MainThread] Calling landscape.
2010-08-18 10:48:28,537 DEBUG [MainThread] Calling landscape.
2010-08-18 10:48:28,538 DEBUG [MainThread] Finished firing message.
2010-08-18 10:48:28,540 DEBUG [MainThread] Started firing message.
2010-08-18 10:48:28,540 DEBUG [MainThread] Calling landscape.
2010-08-18 10:48:28,540 DEBUG [MainThread] Calling landscape.
2010-08-18 10:48:28,541 DEBUG [MainThread] Finished firing message.
2010-08-18 10:48:28,542 DEBUG [MainThread] Started firing exchange-done.
2010-08-18 10:48:28,542 DEBUG [MainThread] Calling landscape.
2010-08-18 10:48:28,542 DEBUG [MainThread] Finished firing exchange-done.
2010-08-18 10:48:28,542 INFO [MainThread] Message exchange completed in 1.32s.
2010-08-18 10:48:28,788 WARNING [MainThread] No message context for message with operation-id: 126070
Only the new2 user was removed:
(manager log)
2010-08-18 10:48:28,559 INFO [MainThread] Removing user new2 (UID 1000) and deleting their home directory.
Related branches
- Kevin McDermott (community): Approve
- Jamu Kakar (community): Approve
-
Diff: 138 lines (+50/-11)3 files modifiedlandscape/manager/tests/test_usermanager.py (+35/-0)
landscape/manager/usermanager.py (+9/-6)
landscape/monitor/usermonitor.py (+6/-5)
summary: |
- Client reporting "No message context" warnings in the logs + Payload with multiple user activities: only one is carried out |
description: | updated |
Changed in landscape-client: | |
importance: | Low → High |
milestone: | later → 1.5.5 |
description: | updated |
Changed in landscape-client: | |
assignee: | nobody → Free Ekanayaka (free.ekanayaka) |
status: | New → In Progress |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
tags: | added: needs-testing |
Changed in landscape-client: | |
milestone: | 1.5.5 → 1.5.5.1 |
tags: | removed: needs-testing |
description: | updated |
Changed in landscape-client (Ubuntu Jaunty): | |
status: | New → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
Changed in landscape-client (Ubuntu Maverick): | |
status: | Fix Committed → Fix Released |
Here is an example for adding two users. This is done via two separate activities on the server, done quickly one after the other so they both get into the same payload:
2010-08-18 10:40:26,912 DEBUG [Dummy-1 ] Received payload: accepted- types-hash' : 'W\xda\ xb7\xc6\ xe9Q\xd3= \xf8;^\ xed7\xae\ xd6\xf2' ,
'location' : None,
'name' : u'new1',
'operation- id': 126065,
'password' : u'2010-08-18 10:39:25,404 INFO ',
'primary- group-name' : None,
'require- password- reset': True,
'type' : 'add-user',
'username' : u'new1',
'work- number' : None},
{'home- number' : None,
'location' : None,
'name' : u'new2',
'operation- id': 126067,
'password' : u'2010-08-18 10:39:25,404 INFO ',
'primary- group-name' : None,
'require- password- reset': True,
'type' : 'add-user',
'username' : u'new2',
'work- number' : None}], expected- sequence' : 53648, 12fb-11de- 91bb-0016353c86 58'} broker. ping.Pinger. _handle_ set_intervals( ) for message with priority 0. broker. server. BrokerServer. broadcast_ message( ) for message with priority 0. broker. ping.Pinger. _handle_ set_intervals( ) for message with priority 0. broker. server. BrokerServer. broadcast_ message( ) for message with priority 0. broker. registration. RegistrationHan dler._handle_ exchange_ done() for exchange-done with priority 0. broker. server. BrokerServer. broadcast_ event() for impending-exchange with priority 0.
{'client-
'messages': [{'home-number': None,
'next-
'server-uuid': '7c6efe47-
2010-08-18 10:40:26,917 INFO [MainThread] Switching to normal exchange mode.
2010-08-18 10:40:26,986 DEBUG [MainThread] Started firing message.
2010-08-18 10:40:26,986 DEBUG [MainThread] Calling landscape.
2010-08-18 10:40:26,986 DEBUG [MainThread] Calling landscape.
2010-08-18 10:40:26,987 DEBUG [MainThread] Finished firing message.
2010-08-18 10:40:26,989 DEBUG [MainThread] Started firing message.
2010-08-18 10:40:26,990 DEBUG [MainThread] Calling landscape.
2010-08-18 10:40:26,990 DEBUG [MainThread] Calling landscape.
2010-08-18 10:40:26,990 DEBUG [MainThread] Finished firing message.
2010-08-18 10:40:26,991 DEBUG [MainThread] Started firing exchange-done.
2010-08-18 10:40:26,991 DEBUG [MainThread] Calling landscape.
2010-08-18 10:40:26,991 DEBUG [MainThread] Finished firing exchange-done.
2010-08-18 10:40:26,991 INFO [MainThread] Message exchange completed in 1.59s.
2010-08-18 10:40:27,621 WARNING [MainThread] No message context for message with operation-id: 126067
2010-08-18 10:40:57,224 INFO [MainThread] Ping indicates message available. Scheduling an urgent exchange.
2010-08-18 10:41:17,606 DEBUG [MainThread] Started firing impending-exchange.
2010-08-18 10:41:17,606 DEBUG [MainThread] Calling landscape.
2010-08-18 10:41:17,607 DEBUG [MainThread] Finished firing impending-exchange.
2010-08-18 10:41:27,219 INFO [MainThread] Ping indicates message available. Scheduling an urgent exchange.
2010-08-18 10:41:27,604 DEBUG [Mai...