2025-01-07 11:33:02,936 - INFO - Domain Default found not creating
2025-01-07 11:33:03,085 - INFO - Project ctest-TestBasicPolicy-00255038 not found, creating it
2025-01-07 11:33:03,571 - INFO - Created Project:ctest-TestBasicPolicy-00255038, ID : e63f0a86-afcd-412e-a36b-b8a744394d51
2025-01-07 11:33:05,125 - INFO - ================================================================================
2025-01-07 11:33:05,126 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 11:33:05,126 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-01-07 11:33:05,381 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with
2025-01-07 11:33:05,381 - INFO - Initial checks done. Running the testcase now
2025-01-07 11:33:05,381 - INFO -
2025-01-07 11:33:05,926 - DEBUG - Response for create_network : {'network': {'id': 'e32e69d9-4a04-4a84-9cc4-0e4600c5604c', 'name': 'ctest-vn-91430289', 'tenant_id': 'e63f0a86afcd412ea36bb8a744394d51', 'project_id': 'e63f0a86afcd412ea36bb8a744394d51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-vn-91430289'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:33:06,139 - DEBUG - Response for create_subnet : {'subnet': {'id': '63c1d162-03e2-44b1-bf74-c9fa86819610', 'name': '', 'tenant_id': 'e63f0a86afcd412ea36bb8a744394d51', 'network_id': 'e32e69d9-4a04-4a84-9cc4-0e4600c5604c', 'ip_version': 4, 'cidr': '154.58.7.128/26', 'allocation_pools': [{'start': '154.58.7.130', 'end': '154.58.7.190'}], 'gateway_ip': '154.58.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.58.7.130', 'tags': [], 'project_id': 'e63f0a86afcd412ea36bb8a744394d51'}}
2025-01-07 11:33:06,160 - INFO - Created VN ctest-vn-91430289
2025-01-07 11:33:06,215 - DEBUG - VN ctest-vn-91430289 UUID is e32e69d9-4a04-4a84-9cc4-0e4600c5604c
2025-01-07 11:33:06,515 - DEBUG - Response for create_network : {'network': {'id': 'ea1363db-0bc6-49e5-b777-dfd8d81314cf', 'name': 'ctest-vn-82982636', 'tenant_id': 'e63f0a86afcd412ea36bb8a744394d51', 'project_id': 'e63f0a86afcd412ea36bb8a744394d51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-vn-82982636'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:33:06,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '78a14fa1-6d66-47ea-9ada-7334beca195b', 'name': '', 'tenant_id': 'e63f0a86afcd412ea36bb8a744394d51', 'network_id': 'ea1363db-0bc6-49e5-b777-dfd8d81314cf', 'ip_version': 4, 'cidr': '192.87.222.64/26', 'allocation_pools': [{'start': '192.87.222.66', 'end': '192.87.222.126'}], 'gateway_ip': '192.87.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.87.222.66', 'tags': [], 'project_id': 'e63f0a86afcd412ea36bb8a744394d51'}}
2025-01-07 11:33:06,720 - INFO - Created VN ctest-vn-82982636
2025-01-07 11:33:06,775 - DEBUG - VN ctest-vn-82982636 UUID is ea1363db-0bc6-49e5-b777-dfd8d81314cf
2025-01-07 11:33:06,897 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-91430289, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-82982636, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-01-07 11:33:07,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e32e69d9-4a04-4a84-9cc4-0e4600c5604c', 'name': 'ctest-vn-91430289', 'tenant_id': 'e63f0a86afcd412ea36bb8a744394d51', 'project_id': 'e63f0a86afcd412ea36bb8a744394d51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63c1d162-03e2-44b1-bf74-c9fa86819610'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-vn-91430289'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-policy-allow-all-56461275']], 'subnet_ipam': [{'subnet_cidr': '154.58.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:33:07,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea1363db-0bc6-49e5-b777-dfd8d81314cf', 'name': 'ctest-vn-82982636', 'tenant_id': 'e63f0a86afcd412ea36bb8a744394d51', 'project_id': 'e63f0a86afcd412ea36bb8a744394d51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78a14fa1-6d66-47ea-9ada-7334beca195b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-vn-82982636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-policy-allow-all-56461275']], 'subnet_ipam': [{'subnet_cidr': '192.87.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:33:07,691 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 11:33:07,998 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 11:33:08,029 - DEBUG - Requesting: http://10.0.0.33:8082/domain/88dfc14d-2a89-463f-8bc3-3a62b83ea8b9
2025-01-07 11:33:08,043 - DEBUG - Requesting: http://10.0.0.33:8082/project/e63f0a86-afcd-412e-a36b-b8a744394d51
2025-01-07 11:33:08,120 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e32e69d9-4a04-4a84-9cc4-0e4600c5604c
2025-01-07 11:33:08,135 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e32e69d9-4a04-4a84-9cc4-0e4600c5604c
2025-01-07 11:33:08,146 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a5cc83e-6c79-4637-bd6e-5543daa76be6
2025-01-07 11:33:08,154 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a5cc83e-6c79-4637-bd6e-5543daa76be6
2025-01-07 11:33:08,162 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f6fa2e6e-9233-4fe2-a2e1-1b1c1cd86c57
2025-01-07 11:33:08,169 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:33:08,169 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e32e69d9-4a04-4a84-9cc4-0e4600c5604c
2025-01-07 11:33:08,180 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a5cc83e-6c79-4637-bd6e-5543daa76be6
2025-01-07 11:33:08,196 - INFO - Verified VN network id 8 for VN e32e69d9-4a04-4a84-9cc4-0e4600c5604c
2025-01-07 11:33:08,196 - INFO - Verifications in API Server for VN ctest-vn-91430289 passed
2025-01-07 11:33:08,196 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e32e69d9-4a04-4a84-9cc4-0e4600c5604c
2025-01-07 11:33:08,207 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a5cc83e-6c79-4637-bd6e-5543daa76be6
2025-01-07 11:33:08,216 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a5cc83e-6c79-4637-bd6e-5543daa76be6
2025-01-07 11:33:08,224 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f6fa2e6e-9233-4fe2-a2e1-1b1c1cd86c57
2025-01-07 11:33:08,238 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-91430289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00255038', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16370138077508946564', 'uuid-lslong': '11296169459175481420'}, 'enable': 'true', 'created': '2025-01-07T11:33:05', 'last-modified': '2025-01-07T11:33:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031775'}
2025-01-07 11:33:08,245 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:33:08,245 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91430289 passed
2025-01-07 11:33:08,245 - DEBUG - ====Verifying policy data for ctest-vn-91430289 in API_Server ======
2025-01-07 11:33:08,245 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 11:33:08,251 - DEBUG - Requesting: http://10.0.0.33:8082/domain/88dfc14d-2a89-463f-8bc3-3a62b83ea8b9
2025-01-07 11:33:08,266 - DEBUG - Requesting: http://10.0.0.33:8082/project/e63f0a86-afcd-412e-a36b-b8a744394d51
2025-01-07 11:33:08,347 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e32e69d9-4a04-4a84-9cc4-0e4600c5604c
2025-01-07 11:33:08,359 - DEBUG - ==>Verifying data for policy with id: 9b25a882-c080-41f6-8ed2-027c60c43d6c, fqn: ['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-policy-allow-all-56461275']
2025-01-07 11:33:08,360 - INFO - VN ctest-vn-91430289 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:33:08,360 - DEBUG - Verifying the vn in opserver
2025-01-07 11:33:08,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-91430289 virtual network link through opserver 10.0.0.33
2025-01-07 11:33:08,360 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-07 11:33:08,657 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-07 11:33:08,720 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-91430289', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-91430289?flat'}
2025-01-07 11:33:08,720 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-91430289 is found in opserver
2025-01-07 11:33:08,734 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:33:08,740 - DEBUG - VRF ids for VN ctest-vn-91430289: {}
2025-01-07 11:33:08,740 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 11:33:08,748 - DEBUG - Requesting: http://10.0.0.33:8082/domain/88dfc14d-2a89-463f-8bc3-3a62b83ea8b9
2025-01-07 11:33:08,761 - DEBUG - Requesting: http://10.0.0.33:8082/project/e63f0a86-afcd-412e-a36b-b8a744394d51
2025-01-07 11:33:08,838 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ea1363db-0bc6-49e5-b777-dfd8d81314cf
2025-01-07 11:33:08,852 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ea1363db-0bc6-49e5-b777-dfd8d81314cf
2025-01-07 11:33:08,863 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2ac155c9-687a-4b61-81f9-b6092248256a
2025-01-07 11:33:08,871 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2ac155c9-687a-4b61-81f9-b6092248256a
2025-01-07 11:33:08,878 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b7b03723-7d97-4e3b-aa87-1b8cd0f08117
2025-01-07 11:33:08,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:33:08,886 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ea1363db-0bc6-49e5-b777-dfd8d81314cf
2025-01-07 11:33:08,895 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2ac155c9-687a-4b61-81f9-b6092248256a
2025-01-07 11:33:08,909 - INFO - Verified VN network id 9 for VN ea1363db-0bc6-49e5-b777-dfd8d81314cf
2025-01-07 11:33:08,909 - INFO - Verifications in API Server for VN ctest-vn-82982636 passed
2025-01-07 11:33:08,909 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ea1363db-0bc6-49e5-b777-dfd8d81314cf
2025-01-07 11:33:08,918 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2ac155c9-687a-4b61-81f9-b6092248256a
2025-01-07 11:33:08,925 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2ac155c9-687a-4b61-81f9-b6092248256a
2025-01-07 11:33:08,932 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b7b03723-7d97-4e3b-aa87-1b8cd0f08117
2025-01-07 11:33:08,943 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-82982636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00255038', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16866934821879171557', 'uuid-lslong': '13220281353600439503'}, 'enable': 'true', 'created': '2025-01-07T11:33:06', 'last-modified': '2025-01-07T11:33:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479578'}
2025-01-07 11:33:08,949 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:33:08,949 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82982636 passed
2025-01-07 11:33:08,950 - DEBUG - ====Verifying policy data for ctest-vn-82982636 in API_Server ======
2025-01-07 11:33:08,950 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 11:33:08,955 - DEBUG - Requesting: http://10.0.0.33:8082/domain/88dfc14d-2a89-463f-8bc3-3a62b83ea8b9
2025-01-07 11:33:08,967 - DEBUG - Requesting: http://10.0.0.33:8082/project/e63f0a86-afcd-412e-a36b-b8a744394d51
2025-01-07 11:33:09,049 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ea1363db-0bc6-49e5-b777-dfd8d81314cf
2025-01-07 11:33:09,061 - DEBUG - ==>Verifying data for policy with id: 9b25a882-c080-41f6-8ed2-027c60c43d6c, fqn: ['default-domain', 'ctest-TestBasicPolicy-00255038', 'ctest-policy-allow-all-56461275']
2025-01-07 11:33:09,061 - INFO - VN ctest-vn-82982636 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:33:09,061 - DEBUG - Verifying the vn in opserver
2025-01-07 11:33:09,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-82982636 virtual network link through opserver 10.0.0.33
2025-01-07 11:33:09,061 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-07 11:33:09,073 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-82982636', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-82982636?flat'}
2025-01-07 11:33:09,073 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00255038:ctest-vn-82982636 is found in opserver
2025-01-07 11:33:09,083 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:33:09,089 - DEBUG - VRF ids for VN ctest-vn-82982636: {}
2025-01-07 11:33:09,146 - DEBUG - Services list from nova: [