2025-01-08 12:13:51,008 - INFO - Domain Default found not creating
2025-01-08 12:13:51,149 - INFO - Project ctest-TestBasicPolicy-82218872 not found, creating it
2025-01-08 12:13:51,601 - INFO - Created Project:ctest-TestBasicPolicy-82218872, ID : a43dbe3e-6c4e-41f1-82f2-b2994ac598e4
2025-01-08 12:13:52,986 - INFO - ================================================================================
2025-01-08 12:13:52,986 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 12:13:52,986 - 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-08 12:13:53,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.10': '0'}} with
2025-01-08 12:13:53,245 - INFO - Initial checks done. Running the testcase now
2025-01-08 12:13:53,245 - INFO -
2025-01-08 12:13:53,776 - DEBUG - Response for create_network : {'network': {'id': 'bf275977-598b-41a9-bd36-0caeed7ee27c', 'name': 'ctest-vn-00558235', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-00558235'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 12:13:54,081 - DEBUG - Response for create_subnet : {'subnet': {'id': '938bd64d-5403-4237-a889-b832e81abf28', 'name': '', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'network_id': 'bf275977-598b-41a9-bd36-0caeed7ee27c', 'ip_version': 4, 'cidr': '11.6.18.192/26', 'allocation_pools': [{'start': '11.6.18.194', 'end': '11.6.18.254'}], 'gateway_ip': '11.6.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.6.18.194', 'tags': [], 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4'}}
2025-01-08 12:13:54,100 - INFO - Created VN ctest-vn-00558235
2025-01-08 12:13:54,152 - DEBUG - VN ctest-vn-00558235 UUID is bf275977-598b-41a9-bd36-0caeed7ee27c
2025-01-08 12:13:54,472 - DEBUG - Response for create_network : {'network': {'id': 'bcc2108d-5b1c-4a83-a1bd-8c52c8624baf', 'name': 'ctest-vn-91658737', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-91658737'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 12:13:54,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d85a5ba-fad7-417c-8061-d6396d9fdff6', 'name': '', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'network_id': 'bcc2108d-5b1c-4a83-a1bd-8c52c8624baf', 'ip_version': 4, 'cidr': '201.31.208.192/26', 'allocation_pools': [{'start': '201.31.208.194', 'end': '201.31.208.254'}], 'gateway_ip': '201.31.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.31.208.194', 'tags': [], 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4'}}
2025-01-08 12:13:54,700 - INFO - Created VN ctest-vn-91658737
2025-01-08 12:13:54,756 - DEBUG - VN ctest-vn-91658737 UUID is bcc2108d-5b1c-4a83-a1bd-8c52c8624baf
2025-01-08 12:13:54,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235, 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-82218872:ctest-vn-91658737, 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-08 12:13:55,189 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf275977-598b-41a9-bd36-0caeed7ee27c', 'name': 'ctest-vn-00558235', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['938bd64d-5403-4237-a889-b832e81abf28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-00558235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731']], 'subnet_ipam': [{'subnet_cidr': '11.6.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 12:13:55,422 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcc2108d-5b1c-4a83-a1bd-8c52c8624baf', 'name': 'ctest-vn-91658737', 'tenant_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'project_id': 'a43dbe3e6c4e41f182f2b2994ac598e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d85a5ba-fad7-417c-8061-d6396d9fdff6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-vn-91658737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731']], 'subnet_ipam': [{'subnet_cidr': '201.31.208.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 12:13:55,592 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-08 12:13:55,881 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-08 12:13:55,913 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88
2025-01-08 12:13:55,927 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4
2025-01-08 12:13:56,002 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c
2025-01-08 12:13:56,014 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c
2025-01-08 12:13:56,024 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6
2025-01-08 12:13:56,032 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6
2025-01-08 12:13:56,040 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/63c693b6-8a6b-4b71-b165-c3dbe07c48e7
2025-01-08 12:13:56,047 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 12:13:56,047 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c
2025-01-08 12:13:56,055 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6
2025-01-08 12:13:56,071 - INFO - Verified VN network id 8 for VN bf275977-598b-41a9-bd36-0caeed7ee27c
2025-01-08 12:13:56,071 - INFO - Verifications in API Server for VN ctest-vn-00558235 passed
2025-01-08 12:13:56,072 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c
2025-01-08 12:13:56,082 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6
2025-01-08 12:13:56,089 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f68ab552-4fb2-45e3-8527-dd083a31e5f6
2025-01-08 12:13:56,096 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/63c693b6-8a6b-4b71-b165-c3dbe07c48e7
2025-01-08 12:13:56,110 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82218872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13774076354474230185', 'uuid-lslong': '13634098867359113852'}, 'enable': 'true', 'created': '2025-01-08T12:13:53', 'last-modified': '2025-01-08T12:13:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933201'}
2025-01-08 12:13:56,118 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 12:13:56,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00558235 passed
2025-01-08 12:13:56,118 - DEBUG - ====Verifying policy data for ctest-vn-00558235 in API_Server ======
2025-01-08 12:13:56,119 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-08 12:13:56,127 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88
2025-01-08 12:13:56,141 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4
2025-01-08 12:13:56,218 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bf275977-598b-41a9-bd36-0caeed7ee27c
2025-01-08 12:13:56,230 - DEBUG - ==>Verifying data for policy with id: 01c32e7b-7a04-4fd0-8739-4531e0fa065e, fqn: ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731']
2025-01-08 12:13:56,230 - INFO - VN ctest-vn-00558235 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 12:13:56,230 - DEBUG - Verifying the vn in opserver
2025-01-08 12:13:56,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235 virtual network link through opserver 10.0.0.45
2025-01-08 12:13:56,231 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-08 12:13:56,528 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-08 12:13:56,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235?flat'}
2025-01-08 12:13:56,578 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-00558235 is found in opserver
2025-01-08 12:13:56,588 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 12:13:56,592 - DEBUG - VRF ids for VN ctest-vn-00558235: {}
2025-01-08 12:13:56,592 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-08 12:13:56,598 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88
2025-01-08 12:13:56,608 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4
2025-01-08 12:13:56,681 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf
2025-01-08 12:13:56,693 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf
2025-01-08 12:13:56,703 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408
2025-01-08 12:13:56,710 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408
2025-01-08 12:13:56,717 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/06d73036-d532-4eb1-b767-61618b22b1cd
2025-01-08 12:13:56,725 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 12:13:56,725 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf
2025-01-08 12:13:56,733 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408
2025-01-08 12:13:56,746 - INFO - Verified VN network id 9 for VN bcc2108d-5b1c-4a83-a1bd-8c52c8624baf
2025-01-08 12:13:56,746 - INFO - Verifications in API Server for VN ctest-vn-91658737 passed
2025-01-08 12:13:56,746 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf
2025-01-08 12:13:56,756 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408
2025-01-08 12:13:56,762 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1cfdae6d-c3e1-43d9-96ab-d631c4df4408
2025-01-08 12:13:56,769 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/06d73036-d532-4eb1-b767-61618b22b1cd
2025-01-08 12:13:56,781 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82218872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13601452023917333123', 'uuid-lslong': '11654625697881803695'}, 'enable': 'true', 'created': '2025-01-08T12:13:54', 'last-modified': '2025-01-08T12:13:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379900'}
2025-01-08 12:13:56,788 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 12:13:56,788 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91658737 passed
2025-01-08 12:13:56,788 - DEBUG - ====Verifying policy data for ctest-vn-91658737 in API_Server ======
2025-01-08 12:13:56,788 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-08 12:13:56,794 - DEBUG - Requesting: http://10.0.0.45:8082/domain/e5ca6c59-a8b6-4026-ab27-4cafe0777f88
2025-01-08 12:13:56,805 - DEBUG - Requesting: http://10.0.0.45:8082/project/a43dbe3e-6c4e-41f1-82f2-b2994ac598e4
2025-01-08 12:13:56,872 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/bcc2108d-5b1c-4a83-a1bd-8c52c8624baf
2025-01-08 12:13:56,881 - DEBUG - ==>Verifying data for policy with id: 01c32e7b-7a04-4fd0-8739-4531e0fa065e, fqn: ['default-domain', 'ctest-TestBasicPolicy-82218872', 'ctest-policy-allow-all-88017731']
2025-01-08 12:13:56,881 - INFO - VN ctest-vn-91658737 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 12:13:56,881 - DEBUG - Verifying the vn in opserver
2025-01-08 12:13:56,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737 virtual network link through opserver 10.0.0.45
2025-01-08 12:13:56,881 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-08 12:13:56,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737?flat'}
2025-01-08 12:13:56,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82218872:ctest-vn-91658737 is found in opserver
2025-01-08 12:13:56,901 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 12:13:56,906 - DEBUG - VRF ids for VN ctest-vn-91658737: {}
2025-01-08 12:13:56,956 - DEBUG - Services list from nova: [