Did you modify the code in com/cloud/server/ConfigurationServerImpl to do this? AFAIK, basic zone always creates a default guest network based on the defaultSharedSGNetworkOffering offering. You may create additional offerings, but I suspect the code won't let you create additional guest networks based on those offerings. Check the DB, (foreign key network_offering_id in table networks)
On 7/26/13 3:08 PM, "Daan Hoogland" <daan.hoogl...@gmail.com> wrote: >Soheil, > >I noticed your post not being replied to so I wondered what it was about, >I >can make a guess but it doesn't contain a question, only an observation. >Do >you mean to have some question about the behavior you are seeing? > >regards, >Daan Hoogland > > >On Fri, Jul 19, 2013 at 7:57 PM, Soheil Eizadi <seiz...@infoblox.com> >wrote: > >> I am trying to figure out if the behavior I am seeing for Basic >>Networking: >> >> For my use case I have a Network Service Offering that has replaced >> Virtual Router service, e.g. DHCP/DNS with my plugin service. Then I >> created a zone with Basic Networking configuration with that Network >> Service Offering. >> >> What I see is that the defaultGuestNetwork that is created attached to >>the >> Physical Network does not have my Service listed in its Network Service >>Map. >> >> -Soheil >> >> More detail below: >> >> mysql> select * from physical_network; >> >> >>+-----+--------------------------------------+--------------+------------ >>----+------+-------+-----------+------------------------+---------+------ >>---------------+---------+ >> | id | uuid | name | >> data_center_id | vnet | speed | domain_id | broadcast_domain_range | >>state >> | created | removed | >> >> >>+-----+--------------------------------------+--------------+------------ >>----+------+-------+-----------+------------------------+---------+------ >>---------------+---------+ >> | 200 | 3a3b7a2e-e771-4847-bd1b-4d9a4ad27baf | cloud-public | >> 1 | NULL | NULL | NULL | POD | Enabled | >> 2013-07-02 17:33:56 | NULL | >> >> >>+-----+--------------------------------------+--------------+------------ >>----+------+-------+-----------+------------------------+---------+------ >>---------------+---------+ >> 1 row in set (0.00 sec) >> >> mysql> select * from physical_network_service_providers; >> >> >>+----+--------------------------------------+---------------------+------ >>---------------------+----------+---------------------------------+------ >>----------------+-----------------------+----------------------+--------- >>-----------------+---------------------------+--------------------------- >>--+-------------------------------+-----------------------------+-------- >>--------------------------+----------------------------+----------------- >>----------------+-----------------------------+---------+ >> | id | uuid | physical_network_id | >> provider_name | state | destination_physical_network_id | >> vpn_service_provided | dhcp_service_provided | dns_service_provided | >> gateway_service_provided | firewall_service_provided | >> source_nat_service_provided | load_balance_service_provided | >> static_nat_service_provided | port_forwarding_service_provided | >> user_data_service_provided | security_group_service_provided | >> networkacl_service_provided | removed | >> >> >>+----+--------------------------------------+---------------------+------ >>---------------------+----------+---------------------------------+------ >>----------------+-----------------------+----------------------+--------- >>-----------------+---------------------------+--------------------------- >>--+-------------------------------+-----------------------------+-------- >>--------------------------+----------------------------+----------------- >>----------------+-----------------------------+---------+ >> | 1 | 0a60e2e7-8b57-493f-b3f0-2dccf0b79705 | 200 | >> VirtualRouter | Enabled | 0 | >> 1 | 1 | 1 | >> 1 | 1 | >> 1 >> | 1 | 1 | >> 1 | 1 | >> 0 | 0 | NULL | >> | 2 | eeaa91c4-e97f-4a5e-9f82-b82db6959e3a | 200 | >> SecurityGroupProvider | Enabled | 0 | >> 0 | 0 | 0 | >> 0 | 0 | >> 0 >> | 0 | 0 | >> 0 | 0 | >> 1 | 0 | NULL | >> | 3 | adb626c9-7274-4afa-b4da-dfaa479836fa | 200 | >> VpcVirtualRouter | Disabled | 0 | >> 1 | 1 | 1 | >> 1 | 0 | >> 1 >> | 1 | 1 | >> 1 | 1 | >> 0 | 1 | NULL | >> | 4 | da2fa58c-2e0f-4189-a0cf-c32c19028dae | 200 | >> BaremetalDhcpProvider | Disabled | 0 | >> 0 | 1 | 0 | >> 0 | 0 | >> 0 >> | 0 | 0 | >> 0 | 0 | >> 0 | 0 | NULL | >> | 5 | 8832b8e4-1520-40a4-a95a-5f1d10a80fc0 | 200 | >> BaremetalPxeProvider | Disabled | 0 | >> 0 | 0 | 0 | >> 0 | 0 | >> 0 >> | 0 | 0 | >> 0 | 0 | >> 0 | 0 | NULL | >> | 6 | 96542431-e700-4faf-8991-cf0a92664ccd | 200 | >> BaremetalUserdataProvider | Disabled | 0 | >> 0 | 0 | 0 | >> 0 | 0 | >> 0 >> | 0 | 0 | >> 0 | 1 | >> 0 | 0 | NULL | >> | 7 | cb57a3df-42e8-4f3d-83b5-50a9f38c65b2 | 200 | >> InternalLbVm | Disabled | 0 | >> 0 | 0 | 0 | >> 0 | 0 | >> 0 >> | 1 | 0 | >> 0 | 0 | >> 0 | 0 | NULL | >> | 8 | bbda984d-4fec-4564-9ba2-698e2b1c54eb | 200 | >> Infoblox | Enabled | 0 | >> 0 | 1 | 1 | >> 0 | 1 | >> 0 >> | 1 | 0 | >> 0 | 0 | >> 0 | 0 | NULL | >> >> >>+----+--------------------------------------+---------------------+------ >>---------------------+----------+---------------------------------+------ >>----------------+-----------------------+----------------------+--------- >>-----------------+---------------------------+--------------------------- >>--+-------------------------------+-----------------------------+-------- >>--------------------------+----------------------------+----------------- >>----------------+-----------------------------+---------+ >> 8 rows in set (0.00 sec) >> >> mysql> select * from networks; >> >> >>+-----+---------------------+--------------------------------------+----- >>----------------+--------------+-----------------------+----------------- >>+-------------+----------------+--------+---------------------+---------- >>-----------+----------------+---------------------------+-------+-------- >>-+-----------+------------+------+------+-----------+------------+------- >>---+----------------+----------------+------------+------------------+--- >>------------------+---------+-------------------+--------+-------------+- >>---------+--------------+-----------------+----------------+ >> | id | name | uuid | >> display_text | traffic_type | broadcast_domain_type | >>broadcast_uri >> | gateway | cidr | mode | network_offering_id | >> physical_network_id | data_center_id | guru_name | >>state | >> related | domain_id | account_id | dns1 | dns2 | guru_data | set_fields >>| >> acl_type | network_domain | reservation_id | guest_type | >>restart_required >> | created | removed | specify_ip_ranges | vpc_id | >>ip6_gateway >> | ip6_cidr | network_cidr | display_network | network_acl_id | >> >> >>+-----+---------------------+--------------------------------------+----- >>----------------+--------------+-----------------------+----------------- >>+-------------+----------------+--------+---------------------+---------- >>-----------+----------------+---------------------------+-------+-------- >>-+-----------+------------+------+------+-----------+------------+------- >>---+----------------+----------------+------------+------------------+--- >>------------------+---------+-------------------+--------+-------------+- >>---------+--------------+-----------------+----------------+ >> .... >> | 204 | defaultGuestNetwork | 5f88ee08-a6bc-42a8-bbe5-3cb88e3d77f6 | >> defaultGuestNetwork | Guest | Native | >> vlan://untagged | NULL | NULL | Dhcp | >> 6 | 200 | 1 | DirectPodBasedNetworkGuru | >> Setup | 204 | 1 | 1 | NULL | NULL | NULL | >> 0 | Domain | acme.com | NULL | Shared | >> 0 | 2013-07-02 17:34:15 | NULL | 1 | NULL | >> NULL | NULL | NULL | 1 | >>NULL | >> >> >>+-----+---------------------+--------------------------------------+----- >>----------------+--------------+-----------------------+----------------- >>+-------------+----------------+--------+---------------------+---------- >>-----------+----------------+---------------------------+-------+-------- >>-+-----------+------------+------+------+-----------+------------+------- >>---+----------------+----------------+------------+------------------+--- >>------------------+---------+-------------------+--------+-------------+- >>---------+--------------+-----------------+----------------+ >> >> mysql> select * from ntwk_service_map; >> >> >>+----+------------+---------------+-----------------------+-------------- >>-------+ >> | id | network_id | service | provider | created >> | >> >> >>+----+------------+---------------+-----------------------+-------------- >>-------+ >> | 1 | 204 | SecurityGroup | SecurityGroupProvider | 2013-07-02 >> 17:34:15 | >> | 2 | 204 | Dns | VirtualRouter | 2013-07-02 >> 17:34:16 | >> | 3 | 204 | Dhcp | VirtualRouter | 2013-07-02 >> 17:34:16 | >> | 4 | 204 | UserData | VirtualRouter | 2013-07-02 >> 17:34:16 | >> >> >>+----+------------+---------------+-----------------------+-------------- >>-------+ >> 4 rows in set (0.00 sec) >> >> >> >>