2025-05-05 02:08:11,131 - INFO - Domain Default found not creating
2025-05-05 02:08:11,281 - INFO - Project ctest-TestBasicPolicy-34561908 not found, creating it
2025-05-05 02:08:11,759 - INFO - Created Project:ctest-TestBasicPolicy-34561908, ID : c2a4cac2-d55b-4812-a50b-be317934ee6c
2025-05-05 02:08:13,337 - INFO - ================================================================================
2025-05-05 02:08:13,337 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-05 02:08:13,337 - 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-05-05 02:08:13,598 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.14': '0'}} with
2025-05-05 02:08:13,598 - INFO - Initial checks done. Running the testcase now
2025-05-05 02:08:13,598 - INFO -
2025-05-05 02:08:14,171 - DEBUG - Response for create_network : {'network': {'id': '1a14a8f1-b188-4072-8a71-140af627b85f', 'name': 'ctest-vn-20272704', 'tenant_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'project_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-vn-20272704'], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:08:14,377 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bea379b-a99c-4a4c-8596-39872d902c1d', 'name': '', 'tenant_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'network_id': '1a14a8f1-b188-4072-8a71-140af627b85f', 'ip_version': 4, 'cidr': '22.11.195.0/26', 'allocation_pools': [{'start': '22.11.195.2', 'end': '22.11.195.62'}], 'gateway_ip': '22.11.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.11.195.2', 'tags': [], 'project_id': 'c2a4cac2d55b4812a50bbe317934ee6c'}}
2025-05-05 02:08:14,396 - INFO - Created VN ctest-vn-20272704
2025-05-05 02:08:14,448 - DEBUG - VN ctest-vn-20272704 UUID is 1a14a8f1-b188-4072-8a71-140af627b85f
2025-05-05 02:08:14,733 - DEBUG - Response for create_network : {'network': {'id': '48930513-aec0-45d2-a4b9-9e3d3ae80106', 'name': 'ctest-vn-23298817', 'tenant_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'project_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-vn-23298817'], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:08:14,939 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1720b00-2535-415c-8e65-7c7bd024abd6', 'name': '', 'tenant_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'network_id': '48930513-aec0-45d2-a4b9-9e3d3ae80106', 'ip_version': 4, 'cidr': '102.173.187.0/26', 'allocation_pools': [{'start': '102.173.187.2', 'end': '102.173.187.62'}], 'gateway_ip': '102.173.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.173.187.2', 'tags': [], 'project_id': 'c2a4cac2d55b4812a50bbe317934ee6c'}}
2025-05-05 02:08:14,956 - INFO - Created VN ctest-vn-23298817
2025-05-05 02:08:15,008 - DEBUG - VN ctest-vn-23298817 UUID is 48930513-aec0-45d2-a4b9-9e3d3ae80106
2025-05-05 02:08:15,163 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-20272704, 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-34561908:ctest-vn-23298817, 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-05-05 02:08:15,461 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a14a8f1-b188-4072-8a71-140af627b85f', 'name': 'ctest-vn-20272704', 'tenant_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'project_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bea379b-a99c-4a4c-8596-39872d902c1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-vn-20272704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-policy-allow-all-91292134']], 'subnet_ipam': [{'subnet_cidr': '22.11.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:08:15,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48930513-aec0-45d2-a4b9-9e3d3ae80106', 'name': 'ctest-vn-23298817', 'tenant_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'project_id': 'c2a4cac2d55b4812a50bbe317934ee6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1720b00-2535-415c-8e65-7c7bd024abd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-vn-23298817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-policy-allow-all-91292134']], 'subnet_ipam': [{'subnet_cidr': '102.173.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:08:15,864 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-05 02:08:16,194 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-05 02:08:16,223 - DEBUG - Requesting: http://10.0.0.56:8082/domain/96609882-497a-45c5-b64e-f23d234c4d75
2025-05-05 02:08:16,237 - DEBUG - Requesting: http://10.0.0.56:8082/project/c2a4cac2-d55b-4812-a50b-be317934ee6c
2025-05-05 02:08:16,309 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1a14a8f1-b188-4072-8a71-140af627b85f
2025-05-05 02:08:16,320 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1a14a8f1-b188-4072-8a71-140af627b85f
2025-05-05 02:08:16,331 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/38b8f443-e40c-4ae7-b726-78c5afbc4f76
2025-05-05 02:08:16,339 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/38b8f443-e40c-4ae7-b726-78c5afbc4f76
2025-05-05 02:08:16,346 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9ca179b4-44a7-4394-863a-929e8427401f
2025-05-05 02:08:16,352 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 02:08:16,353 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1a14a8f1-b188-4072-8a71-140af627b85f
2025-05-05 02:08:16,362 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/38b8f443-e40c-4ae7-b726-78c5afbc4f76
2025-05-05 02:08:16,377 - INFO - Verified VN network id 8 for VN 1a14a8f1-b188-4072-8a71-140af627b85f
2025-05-05 02:08:16,377 - INFO - Verifications in API Server for VN ctest-vn-20272704 passed
2025-05-05 02:08:16,377 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1a14a8f1-b188-4072-8a71-140af627b85f
2025-05-05 02:08:16,387 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/38b8f443-e40c-4ae7-b726-78c5afbc4f76
2025-05-05 02:08:16,395 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/38b8f443-e40c-4ae7-b726-78c5afbc4f76
2025-05-05 02:08:16,402 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9ca179b4-44a7-4394-863a-929e8427401f
2025-05-05 02:08:16,415 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-20272704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34561908', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1879312700539420786', 'uuid-lslong': '9975776686914386015'}, 'enable': 'true', 'created': '2025-05-05T02:08:14', 'last-modified': '2025-05-05T02:08:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983345'}
2025-05-05 02:08:16,422 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 02:08:16,422 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20272704 passed
2025-05-05 02:08:16,422 - DEBUG - ====Verifying policy data for ctest-vn-20272704 in API_Server ======
2025-05-05 02:08:16,422 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-05 02:08:16,428 - DEBUG - Requesting: http://10.0.0.56:8082/domain/96609882-497a-45c5-b64e-f23d234c4d75
2025-05-05 02:08:16,440 - DEBUG - Requesting: http://10.0.0.56:8082/project/c2a4cac2-d55b-4812-a50b-be317934ee6c
2025-05-05 02:08:16,515 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/1a14a8f1-b188-4072-8a71-140af627b85f
2025-05-05 02:08:16,526 - DEBUG - ==>Verifying data for policy with id: bd05ad66-9879-4058-8102-eaf9f1a378be, fqn: ['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-policy-allow-all-91292134']
2025-05-05 02:08:16,526 - INFO - VN ctest-vn-20272704 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 02:08:16,526 - DEBUG - Verifying the vn in opserver
2025-05-05 02:08:16,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-20272704 virtual network link through opserver 10.0.0.56
2025-05-05 02:08:16,526 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-05 02:08:16,862 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-05 02:08:16,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-20272704', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-20272704?flat'}
2025-05-05 02:08:16,921 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-20272704 is found in opserver
2025-05-05 02:08:16,934 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 02:08:16,940 - DEBUG - VRF ids for VN ctest-vn-20272704: {}
2025-05-05 02:08:16,940 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-05 02:08:16,946 - DEBUG - Requesting: http://10.0.0.56:8082/domain/96609882-497a-45c5-b64e-f23d234c4d75
2025-05-05 02:08:16,959 - DEBUG - Requesting: http://10.0.0.56:8082/project/c2a4cac2-d55b-4812-a50b-be317934ee6c
2025-05-05 02:08:17,034 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/48930513-aec0-45d2-a4b9-9e3d3ae80106
2025-05-05 02:08:17,047 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/48930513-aec0-45d2-a4b9-9e3d3ae80106
2025-05-05 02:08:17,057 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9cedb2da-d1cb-4831-b21a-b0cd5963e19b
2025-05-05 02:08:17,065 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9cedb2da-d1cb-4831-b21a-b0cd5963e19b
2025-05-05 02:08:17,072 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/759ecea5-838c-4863-b05b-efca63054db0
2025-05-05 02:08:17,079 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 02:08:17,079 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/48930513-aec0-45d2-a4b9-9e3d3ae80106
2025-05-05 02:08:17,089 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9cedb2da-d1cb-4831-b21a-b0cd5963e19b
2025-05-05 02:08:17,104 - INFO - Verified VN network id 9 for VN 48930513-aec0-45d2-a4b9-9e3d3ae80106
2025-05-05 02:08:17,104 - INFO - Verifications in API Server for VN ctest-vn-23298817 passed
2025-05-05 02:08:17,105 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/48930513-aec0-45d2-a4b9-9e3d3ae80106
2025-05-05 02:08:17,114 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9cedb2da-d1cb-4831-b21a-b0cd5963e19b
2025-05-05 02:08:17,121 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9cedb2da-d1cb-4831-b21a-b0cd5963e19b
2025-05-05 02:08:17,129 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/759ecea5-838c-4863-b05b-efca63054db0
2025-05-05 02:08:17,141 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-23298817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34561908', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5229529174401631698', 'uuid-lslong': '11869692278730129670'}, 'enable': 'true', 'created': '2025-05-05T02:08:14', 'last-modified': '2025-05-05T02:08:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.475227'}
2025-05-05 02:08:17,148 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 02:08:17,148 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23298817 passed
2025-05-05 02:08:17,148 - DEBUG - ====Verifying policy data for ctest-vn-23298817 in API_Server ======
2025-05-05 02:08:17,148 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-05-05 02:08:17,156 - DEBUG - Requesting: http://10.0.0.56:8082/domain/96609882-497a-45c5-b64e-f23d234c4d75
2025-05-05 02:08:17,186 - DEBUG - Requesting: http://10.0.0.56:8082/project/c2a4cac2-d55b-4812-a50b-be317934ee6c
2025-05-05 02:08:17,264 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/48930513-aec0-45d2-a4b9-9e3d3ae80106
2025-05-05 02:08:17,274 - DEBUG - ==>Verifying data for policy with id: bd05ad66-9879-4058-8102-eaf9f1a378be, fqn: ['default-domain', 'ctest-TestBasicPolicy-34561908', 'ctest-policy-allow-all-91292134']
2025-05-05 02:08:17,274 - INFO - VN ctest-vn-23298817 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 02:08:17,274 - DEBUG - Verifying the vn in opserver
2025-05-05 02:08:17,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-23298817 virtual network link through opserver 10.0.0.56
2025-05-05 02:08:17,274 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-05-05 02:08:17,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-23298817', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-23298817?flat'}
2025-05-05 02:08:17,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34561908:ctest-vn-23298817 is found in opserver
2025-05-05 02:08:17,296 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 02:08:17,301 - DEBUG - VRF ids for VN ctest-vn-23298817: {}
2025-05-05 02:08:17,358 - DEBUG - Services list from nova: [