lp:~tealeg/landscape-client/plugins-respect-scopes

Created by Geoff Teale and last modified
Get this branch:
bzr branch lp:~tealeg/landscape-client/plugins-respect-scopes
Only Geoff Teale can upload to this branch. If you are Geoff Teale please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Geoff Teale
Project:
Landscape Client
Status:
Development

Recent revisions

706. By Geoff Teale

Merge scope handling in monitoring plugins.

705. By Geoff Teale

Merge keystone resynchronisation changes.

704. By Geoff Teale

Fix up session_id tests for scoped resynch.

703. By Geoff Teale

Merge in message_schemas.py

702. By Geoff Teale

Merged in test_server.py

701. By Geoff Teale

Merged in test_registration.py

700. By Geoff Teale

Merged in test_exchange.py

699. By Geoff Teale

Merged in registration.py

698. By Geoff Teale

Merged in exchange.py

697. By Geoff Teale

Merged add-session-ids-to-activity-responses [r=jseutter,free.ekanayaka] [f=1158822].

This branch implements the client side parts of a mechanism described here: https://wiki.canonical.com/Landscape/SpecRegistry/0047

In landscape.broker.store.MessageStore I've added three methods, get_session_id, is_valid_session_id, and drop_session_ids, they respectively create and store a new ID (with optional scope), check for existence of a given ID in the store, and delete all IDs within a certain scope. As I write this I suspect it might be sensible to remove scope as the work that requires it is unlikely to get scheduled soon (currently it always uses the default scope, None).

landscape.broker.server.BrokerServer has a get_session_id method that essentially is a pass-through to the MessageStore method. The send_message method on the BrokerServer has been modified to always require a session_id, which it will validate. If the session_id is not known to the message store then the message will be dropped, silently.

landscape.broker.exchange.MessageExchange will now drop all session-ids when it handles a resynchronize request. This means that any messages that are sent with IDs generated before that request will simply be dropped.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~landscape/landscape-client/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers