wip-addr
wip-addr
1. where is it?
2. current state
3. more info
4. cheap fixes
5. in case you were wondering why?
____ 1. where is it?
I've just pushed another update to wip-addr:
[email protected]:linuxbox2/linuxbox-ceph.git
wip-addr
____ 2. current state
This version
1/ compiles
2/ ran an extremely limited set of tests successfully
(was able to bring up ceph-mon, ceph-osd).
In theory, it should do everything a recent "master" branch copy of ceph can do and little or nothing past that. Internally it adds "address vector" support, some parsing/print logic, and lots of encoding rules to pass them around, but there's nothing that can create and little that makes any sensible use of this. So this is just the back end encoding and storage rules.
Phase 2 is to add logic to actually make it useful.
(the very start of this is on linuxbox2 "wip-addr-p2", just monmap changes so far...)
____ 3. more info
There's an etherpad document that describes this in more detail,
http://pad.ceph.com/p/wip_addr
____ 4. cheap fixes
a couple of minor issues that should be easy to resolve,
1.
AsyncConnection.cc
this passes addresses back and forth as it's setting up the connection, and it also exchanges features. As best I can tell, it looks like it exchanges addresses before it knows what features the other end supports. There should be something in here that
does this after knowing what features the other end supports.
2.
(about line 2067 in src/tools/ceph_objectstore_tool.cc) (use via ceph cmd?) tools - "object store tool".
This has a way to serialize objects which includes a watch list which includes an address. There should be an option here to say whether to include exported addresses.
____ 5. in case you were wondering why?
The main current interest for this it to work with accelio, which introduces 2 more transport types (accelio, via tcp or infiniband.) So that means actually 6 possible choices, { ipv6 or ipv6 } x { simple messenger, tcp, infiniband. }. Infiniband typically would work within a data center but not between them, so there are also reachability issues which may not be obvious to the client. (ipv6 has this too).
-Marcus Watts
Hey Marcus,
Quoted 22 lines · Marcus Watts
wip-addr
1. where is it?
2. current state
3. more info
4. cheap fixes
5. in case you were wondering why?____ 1. where is it?
I've just pushed another update to wip-addr:
[email protected]:linuxbox2/linuxbox-ceph.git
wip-addr____ 2. current state
This version
1/ compiles
2/ ran an extremely limited set of tests successfully
(was able to bring up ceph-mon, ceph-osd).
Quoted 5 lines
In theory, it should do everything a recent "master" branch copy of ceph can do and little or nothing past that. Internally it adds "address vector" support, some parsing/print logic, and lots of encoding rules to pass them around, but there's nothing that can create and little that makes any sensible use of this. So this is just the back end encoding and storage rules.
This is looking pretty good. I left some comments. There are still a few XXX's left... but not many. Haomai, can you help with the async msgr one? (Also, Marcus, can you check if the msg/Simple/Pipe.cc connect() and accept() code doing the right thing?)
One minor thing.. please put the subsystem as the prefix to the commit message instead of the branch name (e.g., mds: add features to event types).
Quoted 11 lines
Phase 2 is to add logic to actually make it useful.
(the very start of this is on linuxbox2 "wip-addr-p2", just monmap changes so far...)
____ 3. more infoThere's an etherpad document that describes this in more detail,
http://pad.ceph.com/p/wip_addr
____ 4. cheap fixes
Quoted 8 lines
a couple of minor issues that should be easy to resolve,
1.
AsyncConnection.cc
this passes addresses back and forth as it's setting up the connection, and it also exchanges features. As best I can tell, it looks like it exchanges addresses before it knows what features the other end supports. There should be something in here that
does this after knowing what features the other end supports.
Copying Haomai.
Quoted 6 lines
2.
(about line 2067 in src/tools/ceph_objectstore_tool.cc) (use via ceph cmd?) tools - "object store tool".
This has a way to serialize objects which includes a watch list which includes an address. There should be an option here to say whether to include exported addresses.
I think it's safe to use defaults here.. what do you think, David?
Thanks!
sage
A message that is not in the archive (sent off-list or not yet received): CACJqLyZh4WQZv_3isjXJy=t6YL700C2GjWuen-QG1D5=RkKHYw@mail.gmail.com
resend to ML
Quoted 106 lines · Haomai Wang
Quoted 35 lines · Sage Weil
Hey Marcus,
Quoted 22 lines · Marcus Watts
wip-addr
1. where is it?
2. current state
3. more info
4. cheap fixes
5. in case you were wondering why?____ 1. where is it?
I've just pushed another update to wip-addr:
[email protected]:linuxbox2/linuxbox-ceph.git
wip-addr____ 2. current state
This version
1/ compiles
2/ ran an extremely limited set of tests successfully
(was able to bring up ceph-mon, ceph-osd).Quoted 8 lines
In theory, it should do everything a recent "master" branch copy of ceph can do and little or nothing past that. Internally it adds "address vector"
support, some parsing/print logic, and lots of encoding rules to pass them
around, but there's nothing that can create and little that makes any sensible use of this. So this is just the back end encoding and storage rules.Quoted 4 lines
This is looking pretty good. I left some comments. There are still a few XXX's left... but not many. Haomai, can you help with the async msgr one? (Also, Marcus, can you check if the msg/Simple/Pipe.cc
connect()andaccept()code doing the right thing?)I have a quick view among all commits, looks a great improvement for the future enhancing.
Quoted 26 lines
One minor thing.. please put the subsystem as the prefix to the commit message instead of the branch name (e.g., mds: add features to event types).
Quoted 11 lines
Phase 2 is to add logic to actually make it useful.
(the very start of this is on linuxbox2 "wip-addr-p2", just monmap changes so far...)
____ 3. more infoThere's an etherpad document that describes this in more detail,
http://pad.ceph.com/p/wip_addr
____ 4. cheap fixes
Quoted 8 lines
a couple of minor issues that should be easy to resolve,
1.
AsyncConnection.cc
this passes addresses back and forth as it's setting up the connection, and it also exchanges features. As best I can tell, it looks like it exchanges addresses before it knows what features the other end supports. There should be something in here that
does this after knowing what features the other end supports.Quoted 1 line
Copying Haomai.
Right, it should be the same as simple messenger. The "features" bit is exchanged in "
ceph_msg_connect" and "ceph_msg_connect_reply".I'm afraid that making features before addr exchange isn't a smooth way. Maybe we need a middle release to help format migrating. Or we need to add retry mechanism, we could add proper way to let new-style addr side detect peer format.
Quoted 9 lines
Quoted 8 lines
2.
(about line 2067 in src/tools/ceph_objectstore_tool.cc) (use via ceph cmd?) tools - "object store tool".
This has a way to serialize objects which includes a watch list which includes an address. There should be an option here to say whether to include exported addresses.Quoted 5 lines
I think it's safe to use defaults here.. what do you think, David?
Thanks!
sage--
Best Regards,
Wheat
Signature · 3 lines
Best Regards, Wheat
Quoted 83 lines · Haomai Wang
On Sat, Oct 10, 2015 at 5:49 AM, Sage Weil <[email protected]> wrote:
Hey Marcus,On Fri, 2 Oct 2015, Marcus Watts wrote:
> wip-addr
>
> 1. where is it?
> 2. current state
> 3. more info
> 4. cheap fixes
> 5. in case you were wondering why?
>
> ____ 1. where is it?
>
> I've just pushed another update to wip-addr:
>
> [email protected]:linuxbox2/linuxbox-ceph.git
> wip-addr
>
> ____ 2. current state
>
> This version
> 1/ compiles
> 2/ ran an extremely limited set of tests successfully > (was able to bring up ceph-mon, ceph-osd).
>
> In theory, it should do everything a recent "master" branch copy of ceph
> can do and little or nothing past that. Internally it adds "address vector"
> support, some parsing/print logic, and lots of encoding rules to pass them
> around, but there's nothing that can create and little that makes any
> sensible use of this. So this is just the back end encoding and storage rules.This is looking pretty good. I left some comments. There are still a few
XXX's left... but not many. Haomai, can you help with the async msgr one?
(Also, Marcus, can you check if the msg/Simple/Pipe.ccconnect()and
accept()code doing the right thing?)I have a quick view among all commits, looks a great improvement for the future enhancing.
One minor thing.. please put the subsystem as the prefix to the commit
message instead of the branch name (e.g., mds: add features to event
types).> Phase 2 is to add logic to actually make it useful. > (the very start of this is on linuxbox2 "wip-addr-p2", > just monmap changes so far...)
> ____ 3. more info
>
> There's an etherpad document that describes this in more detail,
>
> http://pad.ceph.com/p/wip_addr
>
> ____ 4. cheap fixes
>
> a couple of minor issues that should be easy to resolve, > 1.
> AsyncConnection.cc
> this passes addresses back and forth as it's setting up the connection,
> and it also exchanges features. As best I can tell, it looks like
> it exchanges addresses before it knows what features the other end
> supports. There should be something in here that
> does this after knowing what features the other end supports.Copying Haomai.
Quoted 7 lines
Right, it should be the same as simple messenger. The "features" bit is exchanged in "
ceph_msg_connect" and "ceph_msg_connect_reply".I'm afraid that making features before addr exchange isn't a smooth way. Maybe we need a middle release to help format migrating. Or we need to add retry mechanism, we could add proper way to let new-style addr side detect peer format.
Yeah... it seems like we need the initial exchange to share the addr that we accepted on, and then a second tag + addrvec to share the full list after that if both sides have the new feature bit.
In any case, I think in both these cases encoding wth 0 with a FIXME comment is fine for the time being.
sage
I don't understand how encode/decode of entity_addr_t is changing without versioning in the encode/decode. This means that this branch is changing the ceph-objectstore-tool export format if CEPH_FEATURE_MSG_ADDR2 is part of the features. So we could bump super_header::super_ver if the export format must change.
Now that I look at it, I'm sure I can clear the watchers and old_watchers in object_info_t during export because that is dynamic information and it happens to include entity_addr_t. I need to verify this, but that may be the only reason that the objectstore tool needs a valid features value to be passed there.
David
Quoted 7 lines · Sage Weil
Quoted 6 lines
2.
Quoted 5 lines
(about line 2067 in src/tools/ceph_objectstore_tool.cc) (use via ceph cmd?) tools - "object store tool".
This has a way to serialize objects which includes a watch list which includes an address. There should be an option here to say whether to include exported addresses.I think it's safe to use defaults here.. what do you think, David?
Quoted 11 lines · David Zafman
I don't understand how encode/decode of
entity_addr_tis changing without versioning in the encode/decode. This means that this branch is changing the ceph-objectstore-tool export format ifCEPH_FEATURE_MSG_ADDR2is part of the features. So we could bumpsuper_header::super_verif the export format must change.Now that I look at it, I'm sure I can clear the watchers and
old_watchersinobject_info_tduring export because that is dynamic information and it happens to includeentity_addr_t. I need to verify this, but that may be the only reason that the objectstore tool needs a valid features value to be passed there.
Ah, yeah... clearing watchers (perhaps optionally, though) sounds fine.
sage
Quoted 13 lines
David
Quoted 7 lines · Sage Weil
Quoted 6 lines
2.
Quoted 5 lines
(about line 2067 in src/tools/ceph_objectstore_tool.cc) (use via ceph cmd?) tools - "object store tool".
This has a way to serialize objects which includes a watch list which includes an address. There should be an option here to say whether to include exported addresses.I think it's safe to use defaults here.. what do you think, David?