2025-03-22 02:34:35,018 - INFO - Domain Default found not creating
2025-03-22 02:34:35,186 - INFO - Project ctest-TestBasicPolicy-97282554 not found, creating it
2025-03-22 02:34:35,713 - INFO - Created Project:ctest-TestBasicPolicy-97282554, ID : 02ec9969-5ab1-4cd4-a71f-caa1afbb9ec1
2025-03-22 02:34:37,230 - INFO - ================================================================================
2025-03-22 02:34:37,230 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-22 02:34:37,230 - 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-03-22 02:34:37,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.13': '0'}} with
2025-03-22 02:34:37,491 - INFO - Initial checks done. Running the testcase now
2025-03-22 02:34:37,491 - INFO -
2025-03-22 02:34:38,088 - DEBUG - Response for create_network : {'network': {'id': 'c1e58702-404f-4d6c-bd20-ad498993d291', 'name': 'ctest-vn-38028386', 'tenant_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'project_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-vn-38028386'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 02:34:38,301 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a0ec316-87b4-4d18-9bdb-130b4300c635', 'name': '', 'tenant_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'network_id': 'c1e58702-404f-4d6c-bd20-ad498993d291', 'ip_version': 4, 'cidr': '173.70.75.192/26', 'allocation_pools': [{'start': '173.70.75.194', 'end': '173.70.75.254'}], 'gateway_ip': '173.70.75.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.70.75.194', 'tags': [], 'project_id': '02ec99695ab14cd4a71fcaa1afbb9ec1'}}
2025-03-22 02:34:38,322 - INFO - Created VN ctest-vn-38028386
2025-03-22 02:34:38,377 - DEBUG - VN ctest-vn-38028386 UUID is c1e58702-404f-4d6c-bd20-ad498993d291
2025-03-22 02:34:38,743 - DEBUG - Response for create_network : {'network': {'id': '7cde0b70-2d4f-450f-9307-f437032d84b6', 'name': 'ctest-vn-69776883', 'tenant_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'project_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-vn-69776883'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 02:34:38,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '2433482c-732a-4b26-86c5-22a044b3ea19', 'name': '', 'tenant_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'network_id': '7cde0b70-2d4f-450f-9307-f437032d84b6', 'ip_version': 4, 'cidr': '213.19.19.128/26', 'allocation_pools': [{'start': '213.19.19.130', 'end': '213.19.19.190'}], 'gateway_ip': '213.19.19.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.19.19.130', 'tags': [], 'project_id': '02ec99695ab14cd4a71fcaa1afbb9ec1'}}
2025-03-22 02:34:38,973 - INFO - Created VN ctest-vn-69776883
2025-03-22 02:34:39,025 - DEBUG - VN ctest-vn-69776883 UUID is 7cde0b70-2d4f-450f-9307-f437032d84b6
2025-03-22 02:34:39,150 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-38028386, 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-97282554:ctest-vn-69776883, 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-03-22 02:34:39,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1e58702-404f-4d6c-bd20-ad498993d291', 'name': 'ctest-vn-38028386', 'tenant_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'project_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a0ec316-87b4-4d18-9bdb-130b4300c635'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-vn-38028386'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-policy-allow-all-44933077']], 'subnet_ipam': [{'subnet_cidr': '173.70.75.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 02:34:39,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cde0b70-2d4f-450f-9307-f437032d84b6', 'name': 'ctest-vn-69776883', 'tenant_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'project_id': '02ec99695ab14cd4a71fcaa1afbb9ec1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2433482c-732a-4b26-86c5-22a044b3ea19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-vn-69776883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-policy-allow-all-44933077']], 'subnet_ipam': [{'subnet_cidr': '213.19.19.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 02:34:39,929 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-22 02:34:40,229 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-22 02:34:40,259 - DEBUG - Requesting: http://10.0.0.28:8082/domain/7515f5f3-a6e3-4058-9d58-c95eec6d9d9a
2025-03-22 02:34:40,278 - DEBUG - Requesting: http://10.0.0.28:8082/project/02ec9969-5ab1-4cd4-a71f-caa1afbb9ec1
2025-03-22 02:34:40,365 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/c1e58702-404f-4d6c-bd20-ad498993d291
2025-03-22 02:34:40,377 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/c1e58702-404f-4d6c-bd20-ad498993d291
2025-03-22 02:34:40,388 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ef7642ec-cdc9-4b2c-9443-0ced953d8b58
2025-03-22 02:34:40,397 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ef7642ec-cdc9-4b2c-9443-0ced953d8b58
2025-03-22 02:34:40,406 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/1e63f08a-0130-41ae-b283-8aafbe709dbf
2025-03-22 02:34:40,417 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 02:34:40,417 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/c1e58702-404f-4d6c-bd20-ad498993d291
2025-03-22 02:34:40,431 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ef7642ec-cdc9-4b2c-9443-0ced953d8b58
2025-03-22 02:34:40,452 - INFO - Verified VN network id 8 for VN c1e58702-404f-4d6c-bd20-ad498993d291
2025-03-22 02:34:40,453 - INFO - Verifications in API Server for VN ctest-vn-38028386 passed
2025-03-22 02:34:40,453 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/c1e58702-404f-4d6c-bd20-ad498993d291
2025-03-22 02:34:40,470 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ef7642ec-cdc9-4b2c-9443-0ced953d8b58
2025-03-22 02:34:40,480 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ef7642ec-cdc9-4b2c-9443-0ced953d8b58
2025-03-22 02:34:40,488 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/1e63f08a-0130-41ae-b283-8aafbe709dbf
2025-03-22 02:34:40,503 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-38028386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97282554', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13971721862725455212', 'uuid-lslong': '13628083003775505041'}, 'enable': 'true', 'created': '2025-03-22T02:34:38', 'last-modified': '2025-03-22T02:34:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.060816'}
2025-03-22 02:34:40,511 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 02:34:40,511 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38028386 passed
2025-03-22 02:34:40,511 - DEBUG - ====Verifying policy data for ctest-vn-38028386 in API_Server ======
2025-03-22 02:34:40,511 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-22 02:34:40,519 - DEBUG - Requesting: http://10.0.0.28:8082/domain/7515f5f3-a6e3-4058-9d58-c95eec6d9d9a
2025-03-22 02:34:40,532 - DEBUG - Requesting: http://10.0.0.28:8082/project/02ec9969-5ab1-4cd4-a71f-caa1afbb9ec1
2025-03-22 02:34:40,613 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/c1e58702-404f-4d6c-bd20-ad498993d291
2025-03-22 02:34:40,626 - DEBUG - ==>Verifying data for policy with id: 37b7cb53-3552-4cc4-937b-5487bb0c87b3, fqn: ['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-policy-allow-all-44933077']
2025-03-22 02:34:40,626 - INFO - VN ctest-vn-38028386 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 02:34:40,626 - DEBUG - Verifying the vn in opserver
2025-03-22 02:34:40,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-38028386 virtual network link through opserver 10.0.0.28
2025-03-22 02:34:40,626 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-22 02:34:40,921 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-22 02:34:40,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-38028386', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-38028386?flat'}
2025-03-22 02:34:40,992 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-38028386 is found in opserver
2025-03-22 02:34:41,006 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 02:34:41,012 - DEBUG - VRF ids for VN ctest-vn-38028386: {}
2025-03-22 02:34:41,012 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-22 02:34:41,019 - DEBUG - Requesting: http://10.0.0.28:8082/domain/7515f5f3-a6e3-4058-9d58-c95eec6d9d9a
2025-03-22 02:34:41,036 - DEBUG - Requesting: http://10.0.0.28:8082/project/02ec9969-5ab1-4cd4-a71f-caa1afbb9ec1
2025-03-22 02:34:41,125 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7cde0b70-2d4f-450f-9307-f437032d84b6
2025-03-22 02:34:41,141 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7cde0b70-2d4f-450f-9307-f437032d84b6
2025-03-22 02:34:41,154 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/614022a9-3f6b-4478-8a3b-6c5ff7cfe08e
2025-03-22 02:34:41,165 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/614022a9-3f6b-4478-8a3b-6c5ff7cfe08e
2025-03-22 02:34:41,177 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/37970759-a28b-4fb9-8da6-3960087a9f90
2025-03-22 02:34:41,187 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 02:34:41,187 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7cde0b70-2d4f-450f-9307-f437032d84b6
2025-03-22 02:34:41,199 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/614022a9-3f6b-4478-8a3b-6c5ff7cfe08e
2025-03-22 02:34:41,215 - INFO - Verified VN network id 9 for VN 7cde0b70-2d4f-450f-9307-f437032d84b6
2025-03-22 02:34:41,215 - INFO - Verifications in API Server for VN ctest-vn-69776883 passed
2025-03-22 02:34:41,215 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7cde0b70-2d4f-450f-9307-f437032d84b6
2025-03-22 02:34:41,228 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/614022a9-3f6b-4478-8a3b-6c5ff7cfe08e
2025-03-22 02:34:41,239 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/614022a9-3f6b-4478-8a3b-6c5ff7cfe08e
2025-03-22 02:34:41,249 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/37970759-a28b-4fb9-8da6-3960087a9f90
2025-03-22 02:34:41,267 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-69776883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97282554', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8997641681957242127', 'uuid-lslong': '10594705165526074550'}, 'enable': 'true', 'created': '2025-03-22T02:34:38', 'last-modified': '2025-03-22T02:34:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.572046'}
2025-03-22 02:34:41,274 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 02:34:41,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69776883 passed
2025-03-22 02:34:41,275 - DEBUG - ====Verifying policy data for ctest-vn-69776883 in API_Server ======
2025-03-22 02:34:41,275 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-03-22 02:34:41,283 - DEBUG - Requesting: http://10.0.0.28:8082/domain/7515f5f3-a6e3-4058-9d58-c95eec6d9d9a
2025-03-22 02:34:41,300 - DEBUG - Requesting: http://10.0.0.28:8082/project/02ec9969-5ab1-4cd4-a71f-caa1afbb9ec1
2025-03-22 02:34:41,384 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7cde0b70-2d4f-450f-9307-f437032d84b6
2025-03-22 02:34:41,396 - DEBUG - ==>Verifying data for policy with id: 37b7cb53-3552-4cc4-937b-5487bb0c87b3, fqn: ['default-domain', 'ctest-TestBasicPolicy-97282554', 'ctest-policy-allow-all-44933077']
2025-03-22 02:34:41,396 - INFO - VN ctest-vn-69776883 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 02:34:41,396 - DEBUG - Verifying the vn in opserver
2025-03-22 02:34:41,396 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-69776883 virtual network link through opserver 10.0.0.28
2025-03-22 02:34:41,396 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-03-22 02:34:41,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-69776883', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-69776883?flat'}
2025-03-22 02:34:41,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97282554:ctest-vn-69776883 is found in opserver
2025-03-22 02:34:41,422 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 02:34:41,428 - DEBUG - VRF ids for VN ctest-vn-69776883: {}
2025-03-22 02:34:41,490 - DEBUG - Services list from nova: [