2025-04-22 17:35:36,854 - INFO - Domain Default found not creating
2025-04-22 17:35:36,995 - INFO - Project ctest-TestBasicPolicy-95118101 not found, creating it
2025-04-22 17:35:37,453 - INFO - Created Project:ctest-TestBasicPolicy-95118101, ID : ef86fa42-a8c1-45f0-a909-0e04d84882da
2025-04-22 17:35:39,044 - INFO - ================================================================================
2025-04-22 17:35:39,044 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 17:35:39,044 - 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-04-22 17:35:39,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-04-22 17:35:39,297 - INFO - Initial checks done. Running the testcase now
2025-04-22 17:35:39,297 - INFO -
2025-04-22 17:35:39,922 - DEBUG - Response for create_network : {'network': {'id': '74d69451-ba9e-4dc2-b3f6-c17d4c373267', 'name': 'ctest-vn-51101213', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-51101213'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:35:40,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e2ce94b-25b5-479a-bf98-95c80277bd94', 'name': '', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'network_id': '74d69451-ba9e-4dc2-b3f6-c17d4c373267', 'ip_version': 4, 'cidr': '133.123.89.0/26', 'allocation_pools': [{'start': '133.123.89.2', 'end': '133.123.89.62'}], 'gateway_ip': '133.123.89.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.123.89.2', 'tags': [], 'project_id': 'ef86fa42a8c145f0a9090e04d84882da'}}
2025-04-22 17:35:40,144 - INFO - Created VN ctest-vn-51101213
2025-04-22 17:35:40,195 - DEBUG - VN ctest-vn-51101213 UUID is 74d69451-ba9e-4dc2-b3f6-c17d4c373267
2025-04-22 17:35:40,643 - DEBUG - Response for create_network : {'network': {'id': '05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00', 'name': 'ctest-vn-83205523', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-83205523'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:35:40,835 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a682dab1-c9f1-40d4-8833-dc8da7991cc1', 'name': '', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'network_id': '05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00', 'ip_version': 4, 'cidr': '138.30.101.128/26', 'allocation_pools': [{'start': '138.30.101.130', 'end': '138.30.101.190'}], 'gateway_ip': '138.30.101.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.30.101.130', 'tags': [], 'project_id': 'ef86fa42a8c145f0a9090e04d84882da'}}
2025-04-22 17:35:40,854 - INFO - Created VN ctest-vn-83205523
2025-04-22 17:35:40,907 - DEBUG - VN ctest-vn-83205523 UUID is 05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00
2025-04-22 17:35:41,023 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213, 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-95118101:ctest-vn-83205523, 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-04-22 17:35:41,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74d69451-ba9e-4dc2-b3f6-c17d4c373267', 'name': 'ctest-vn-51101213', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e2ce94b-25b5-479a-bf98-95c80277bd94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-51101213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603']], 'subnet_ipam': [{'subnet_cidr': '133.123.89.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:35:41,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00', 'name': 'ctest-vn-83205523', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a682dab1-c9f1-40d4-8833-dc8da7991cc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-83205523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603']], 'subnet_ipam': [{'subnet_cidr': '138.30.101.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 17:35:41,791 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-22 17:35:42,124 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-22 17:35:42,152 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc
2025-04-22 17:35:42,166 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da
2025-04-22 17:35:42,243 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267
2025-04-22 17:35:42,256 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267
2025-04-22 17:35:42,266 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a
2025-04-22 17:35:42,273 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a
2025-04-22 17:35:42,279 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ea9e172f-3261-47a6-a1fc-4ce853345385
2025-04-22 17:35:42,286 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 17:35:42,286 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267
2025-04-22 17:35:42,296 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a
2025-04-22 17:35:42,310 - INFO - Verified VN network id 8 for VN 74d69451-ba9e-4dc2-b3f6-c17d4c373267
2025-04-22 17:35:42,311 - INFO - Verifications in API Server for VN ctest-vn-51101213 passed
2025-04-22 17:35:42,311 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267
2025-04-22 17:35:42,320 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a
2025-04-22 17:35:42,327 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a
2025-04-22 17:35:42,333 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ea9e172f-3261-47a6-a1fc-4ce853345385
2025-04-22 17:35:42,345 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95118101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8419079632159919554', 'uuid-lslong': '12967764920953680487'}, 'enable': 'true', 'created': '2025-04-22T17:35:39', 'last-modified': '2025-04-22T17:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028712'}
2025-04-22 17:35:42,353 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 17:35:42,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51101213 passed
2025-04-22 17:35:42,353 - DEBUG - ====Verifying policy data for ctest-vn-51101213 in API_Server ======
2025-04-22 17:35:42,353 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-22 17:35:42,359 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc
2025-04-22 17:35:42,370 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da
2025-04-22 17:35:42,452 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267
2025-04-22 17:35:42,465 - DEBUG - ==>Verifying data for policy with id: bb1d741b-4387-4ef5-91e9-f29c735c13f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603']
2025-04-22 17:35:42,465 - INFO - VN ctest-vn-51101213 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 17:35:42,465 - DEBUG - Verifying the vn in opserver
2025-04-22 17:35:42,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213 virtual network link through opserver 10.0.0.141
2025-04-22 17:35:42,465 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-04-22 17:35:42,800 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-04-22 17:35:42,859 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213?flat'}
2025-04-22 17:35:42,859 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213 is found in opserver
2025-04-22 17:35:42,872 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 17:35:42,878 - DEBUG - VRF ids for VN ctest-vn-51101213: {}
2025-04-22 17:35:42,878 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-22 17:35:42,885 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc
2025-04-22 17:35:42,899 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da
2025-04-22 17:35:42,978 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00
2025-04-22 17:35:42,992 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00
2025-04-22 17:35:43,006 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2
2025-04-22 17:35:43,015 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2
2025-04-22 17:35:43,023 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a10b18a7-c75b-43cf-ac66-bb31f51a0afc
2025-04-22 17:35:43,030 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 17:35:43,030 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00
2025-04-22 17:35:43,039 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2
2025-04-22 17:35:43,054 - INFO - Verified VN network id 9 for VN 05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00
2025-04-22 17:35:43,054 - INFO - Verifications in API Server for VN ctest-vn-83205523 passed
2025-04-22 17:35:43,055 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00
2025-04-22 17:35:43,066 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2
2025-04-22 17:35:43,076 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2
2025-04-22 17:35:43,084 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a10b18a7-c75b-43cf-ac66-bb31f51a0afc
2025-04-22 17:35:43,098 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95118101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '424626632089223674', 'uuid-lslong': '10150689271628647680'}, 'enable': 'true', 'created': '2025-04-22T17:35:40', 'last-modified': '2025-04-22T17:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.527580'}
2025-04-22 17:35:43,104 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 17:35:43,105 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83205523 passed
2025-04-22 17:35:43,105 - DEBUG - ====Verifying policy data for ctest-vn-83205523 in API_Server ======
2025-04-22 17:35:43,105 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-22 17:35:43,111 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc
2025-04-22 17:35:43,125 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da
2025-04-22 17:35:43,200 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00
2025-04-22 17:35:43,211 - DEBUG - ==>Verifying data for policy with id: bb1d741b-4387-4ef5-91e9-f29c735c13f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603']
2025-04-22 17:35:43,211 - INFO - VN ctest-vn-83205523 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 17:35:43,211 - DEBUG - Verifying the vn in opserver
2025-04-22 17:35:43,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523 virtual network link through opserver 10.0.0.141
2025-04-22 17:35:43,211 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-04-22 17:35:43,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523?flat'}
2025-04-22 17:35:43,222 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523 is found in opserver
2025-04-22 17:35:43,233 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 17:35:43,238 - DEBUG - VRF ids for VN ctest-vn-83205523: {}
2025-04-22 17:35:43,291 - DEBUG - Services list from nova: [