2024-09-12 02:25:56,047 - INFO - Domain Default found not creating
2024-09-12 02:25:56,225 - INFO - Project ctest-TestBasicPolicy-04839660 not found, creating it
2024-09-12 02:25:56,751 - INFO - Created Project:ctest-TestBasicPolicy-04839660, ID : 2f5b9dbf-6b77-40f5-a64d-a7e661366842
2024-09-12 02:25:58,444 - INFO - ================================================================================
2024-09-12 02:25:58,445 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-12 02:25:58,445 - 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
2024-09-12 02:25:58,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.8': '0'}} with
2024-09-12 02:25:58,705 - INFO - Initial checks done. Running the testcase now
2024-09-12 02:25:58,705 - INFO -
2024-09-12 02:25:59,381 - DEBUG - Response for create_network : {'network': {'id': 'e44f7db5-a264-42d4-acfb-94eedba528ad', 'name': 'ctest-vn-19790199', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-19790199'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:25:59,602 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c79e4e6b-2b91-4a47-be0f-2e7ced4231a6', 'name': '', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'network_id': 'e44f7db5-a264-42d4-acfb-94eedba528ad', 'ip_version': 4, 'cidr': '28.26.91.64/26', 'allocation_pools': [{'start': '28.26.91.66', 'end': '28.26.91.126'}], 'gateway_ip': '28.26.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.26.91.66', 'tags': [], 'project_id': '2f5b9dbf6b7740f5a64da7e661366842'}}
2024-09-12 02:25:59,625 - INFO - Created VN ctest-vn-19790199
2024-09-12 02:25:59,685 - DEBUG - VN ctest-vn-19790199 UUID is e44f7db5-a264-42d4-acfb-94eedba528ad
2024-09-12 02:26:00,068 - DEBUG - Response for create_network : {'network': {'id': 'f40931bf-c11a-4ea6-b35a-d9823addf428', 'name': 'ctest-vn-82290055', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-82290055'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:26:00,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '2eaf65b1-9903-40b4-8f3c-548be4195905', 'name': '', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'network_id': 'f40931bf-c11a-4ea6-b35a-d9823addf428', 'ip_version': 4, 'cidr': '139.36.37.64/26', 'allocation_pools': [{'start': '139.36.37.66', 'end': '139.36.37.126'}], 'gateway_ip': '139.36.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.36.37.66', 'tags': [], 'project_id': '2f5b9dbf6b7740f5a64da7e661366842'}}
2024-09-12 02:26:00,280 - INFO - Created VN ctest-vn-82290055
2024-09-12 02:26:00,341 - DEBUG - VN ctest-vn-82290055 UUID is f40931bf-c11a-4ea6-b35a-d9823addf428
2024-09-12 02:26:00,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199, 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-04839660:ctest-vn-82290055, 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]
2024-09-12 02:26:01,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e44f7db5-a264-42d4-acfb-94eedba528ad', 'name': 'ctest-vn-19790199', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c79e4e6b-2b91-4a47-be0f-2e7ced4231a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-19790199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074']], 'subnet_ipam': [{'subnet_cidr': '28.26.91.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:26:01,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f40931bf-c11a-4ea6-b35a-d9823addf428', 'name': 'ctest-vn-82290055', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2eaf65b1-9903-40b4-8f3c-548be4195905'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-82290055'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074']], 'subnet_ipam': [{'subnet_cidr': '139.36.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:26:01,665 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-12 02:26:02,026 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-12 02:26:02,064 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0
2024-09-12 02:26:02,096 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842
2024-09-12 02:26:02,184 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad
2024-09-12 02:26:02,202 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad
2024-09-12 02:26:02,222 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394
2024-09-12 02:26:02,234 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394
2024-09-12 02:26:02,244 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/e97a3f5b-6bdf-4395-a426-344389a22fce
2024-09-12 02:26:02,253 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 02:26:02,253 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad
2024-09-12 02:26:02,268 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394
2024-09-12 02:26:02,293 - INFO - Verified VN network id 9 for VN e44f7db5-a264-42d4-acfb-94eedba528ad
2024-09-12 02:26:02,293 - INFO - Verifications in API Server for VN ctest-vn-19790199 passed
2024-09-12 02:26:02,293 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad
2024-09-12 02:26:02,310 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394
2024-09-12 02:26:02,320 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394
2024-09-12 02:26:02,330 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/e97a3f5b-6bdf-4395-a426-344389a22fce
2024-09-12 02:26:02,345 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04839660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16451506182874743508', 'uuid-lslong': '12464720147286141101'}, 'enable': 'true', 'created': '2024-09-12T02:25:59', 'last-modified': '2024-09-12T02:26:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.217715'}
2024-09-12 02:26:02,352 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 02:26:02,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19790199 passed
2024-09-12 02:26:02,352 - DEBUG - ====Verifying policy data for ctest-vn-19790199 in API_Server ======
2024-09-12 02:26:02,352 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-12 02:26:02,359 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0
2024-09-12 02:26:02,375 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842
2024-09-12 02:26:02,462 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad
2024-09-12 02:26:02,480 - DEBUG - ==>Verifying data for policy with id: d67914d7-3a1f-4f8e-8b35-4af9c339a80b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074']
2024-09-12 02:26:02,480 - INFO - VN ctest-vn-19790199 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 02:26:02,480 - DEBUG - Verifying the vn in opserver
2024-09-12 02:26:02,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199 virtual network link through opserver 10.0.0.32
2024-09-12 02:26:02,480 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-12 02:26:02,821 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-12 02:26:02,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199?flat'}
2024-09-12 02:26:02,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199 is found in opserver
2024-09-12 02:26:02,910 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 02:26:02,916 - DEBUG - VRF ids for VN ctest-vn-19790199: {}
2024-09-12 02:26:02,916 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-12 02:26:02,924 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0
2024-09-12 02:26:02,939 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842
2024-09-12 02:26:03,022 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428
2024-09-12 02:26:03,042 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428
2024-09-12 02:26:03,058 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b
2024-09-12 02:26:03,069 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b
2024-09-12 02:26:03,083 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f7c66955-5b44-405a-bb99-13eb249982a6
2024-09-12 02:26:03,094 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 02:26:03,095 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428
2024-09-12 02:26:03,113 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b
2024-09-12 02:26:03,138 - INFO - Verified VN network id 10 for VN f40931bf-c11a-4ea6-b35a-d9823addf428
2024-09-12 02:26:03,138 - INFO - Verifications in API Server for VN ctest-vn-82290055 passed
2024-09-12 02:26:03,138 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428
2024-09-12 02:26:03,155 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b
2024-09-12 02:26:03,165 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b
2024-09-12 02:26:03,176 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f7c66955-5b44-405a-bb99-13eb249982a6
2024-09-12 02:26:03,194 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04839660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17584640919693053606', 'uuid-lslong': '12923881234049659944'}, 'enable': 'true', 'created': '2024-09-12T02:26:00', 'last-modified': '2024-09-12T02:26:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.684208'}
2024-09-12 02:26:03,203 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 02:26:03,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82290055 passed
2024-09-12 02:26:03,203 - DEBUG - ====Verifying policy data for ctest-vn-82290055 in API_Server ======
2024-09-12 02:26:03,203 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-12 02:26:03,228 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0
2024-09-12 02:26:03,244 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842
2024-09-12 02:26:03,331 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428
2024-09-12 02:26:03,348 - DEBUG - ==>Verifying data for policy with id: d67914d7-3a1f-4f8e-8b35-4af9c339a80b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074']
2024-09-12 02:26:03,348 - INFO - VN ctest-vn-82290055 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 02:26:03,348 - DEBUG - Verifying the vn in opserver
2024-09-12 02:26:03,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055 virtual network link through opserver 10.0.0.32
2024-09-12 02:26:03,348 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-12 02:26:03,362 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055?flat'}
2024-09-12 02:26:03,362 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055 is found in opserver
2024-09-12 02:26:03,375 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 02:26:03,382 - DEBUG - VRF ids for VN ctest-vn-82290055: {}
2024-09-12 02:26:03,448 - DEBUG - Services list from nova: [