2025-08-07 02:16:51,348 - INFO - Domain Default found not creating
2025-08-07 02:16:51,490 - INFO - Project ctest-TestBasicPolicy-23611705 not found, creating it
2025-08-07 02:16:51,946 - INFO - Created Project:ctest-TestBasicPolicy-23611705, ID : 9381d31a-0454-4f5b-93b3-915e26f6adaa
2025-08-07 02:16:53,614 - INFO - ================================================================================
2025-08-07 02:16:53,614 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 02:16:53,614 - 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-08-07 02:16:53,882 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with
2025-08-07 02:16:53,882 - INFO - Initial checks done. Running the testcase now
2025-08-07 02:16:53,882 - INFO -
2025-08-07 02:16:54,504 - DEBUG - Response for create_network : {'network': {'id': 'c2a20f78-85ef-434b-9b44-2faf68c412b2', 'name': 'ctest-vn-67251749', 'tenant_id': '9381d31a04544f5b93b3915e26f6adaa', 'project_id': '9381d31a04544f5b93b3915e26f6adaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-vn-67251749'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:16:54,676 - DEBUG - Response for create_subnet : {'subnet': {'id': '962c5e84-5fec-4811-bc0b-19baa2702ab4', 'name': '', 'tenant_id': '9381d31a04544f5b93b3915e26f6adaa', 'network_id': 'c2a20f78-85ef-434b-9b44-2faf68c412b2', 'ip_version': 4, 'cidr': '29.254.105.64/26', 'allocation_pools': [{'start': '29.254.105.66', 'end': '29.254.105.126'}], 'gateway_ip': '29.254.105.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.254.105.66', 'tags': [], 'project_id': '9381d31a04544f5b93b3915e26f6adaa'}}
2025-08-07 02:16:54,696 - INFO - Created VN ctest-vn-67251749
2025-08-07 02:16:54,749 - DEBUG - VN ctest-vn-67251749 UUID is c2a20f78-85ef-434b-9b44-2faf68c412b2
2025-08-07 02:16:55,060 - DEBUG - Response for create_network : {'network': {'id': 'd85a48b2-1fca-432b-81de-f0fef88b09d7', 'name': 'ctest-vn-27951499', 'tenant_id': '9381d31a04544f5b93b3915e26f6adaa', 'project_id': '9381d31a04544f5b93b3915e26f6adaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-vn-27951499'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:16:55,257 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8ebe862-59be-455a-9616-93204978b13e', 'name': '', 'tenant_id': '9381d31a04544f5b93b3915e26f6adaa', 'network_id': 'd85a48b2-1fca-432b-81de-f0fef88b09d7', 'ip_version': 4, 'cidr': '19.187.21.64/26', 'allocation_pools': [{'start': '19.187.21.66', 'end': '19.187.21.126'}], 'gateway_ip': '19.187.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.187.21.66', 'tags': [], 'project_id': '9381d31a04544f5b93b3915e26f6adaa'}}
2025-08-07 02:16:55,276 - INFO - Created VN ctest-vn-27951499
2025-08-07 02:16:55,333 - DEBUG - VN ctest-vn-27951499 UUID is d85a48b2-1fca-432b-81de-f0fef88b09d7
2025-08-07 02:16:55,450 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-67251749, 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-23611705:ctest-vn-27951499, 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-08-07 02:16:55,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c2a20f78-85ef-434b-9b44-2faf68c412b2', 'name': 'ctest-vn-67251749', 'tenant_id': '9381d31a04544f5b93b3915e26f6adaa', 'project_id': '9381d31a04544f5b93b3915e26f6adaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['962c5e84-5fec-4811-bc0b-19baa2702ab4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-vn-67251749'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-policy-allow-all-26393564']], 'subnet_ipam': [{'subnet_cidr': '29.254.105.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:16:56,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd85a48b2-1fca-432b-81de-f0fef88b09d7', 'name': 'ctest-vn-27951499', 'tenant_id': '9381d31a04544f5b93b3915e26f6adaa', 'project_id': '9381d31a04544f5b93b3915e26f6adaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8ebe862-59be-455a-9616-93204978b13e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-vn-27951499'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-policy-allow-all-26393564']], 'subnet_ipam': [{'subnet_cidr': '19.187.21.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:16:56,189 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-08-07 02:16:56,524 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-08-07 02:16:56,554 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d
2025-08-07 02:16:56,569 - DEBUG - Requesting: http://10.0.0.129:8082/project/9381d31a-0454-4f5b-93b3-915e26f6adaa
2025-08-07 02:16:56,644 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c2a20f78-85ef-434b-9b44-2faf68c412b2
2025-08-07 02:16:56,657 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c2a20f78-85ef-434b-9b44-2faf68c412b2
2025-08-07 02:16:56,668 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c3702dd0-3b45-4813-a940-d72745db962b
2025-08-07 02:16:56,677 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c3702dd0-3b45-4813-a940-d72745db962b
2025-08-07 02:16:56,686 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/6bc57859-c5fd-4105-a406-fbfa090ff125
2025-08-07 02:16:56,693 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 02:16:56,693 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c2a20f78-85ef-434b-9b44-2faf68c412b2
2025-08-07 02:16:56,703 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c3702dd0-3b45-4813-a940-d72745db962b
2025-08-07 02:16:56,718 - INFO - Verified VN network id 11 for VN c2a20f78-85ef-434b-9b44-2faf68c412b2
2025-08-07 02:16:56,718 - INFO - Verifications in API Server for VN ctest-vn-67251749 passed
2025-08-07 02:16:56,718 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c2a20f78-85ef-434b-9b44-2faf68c412b2
2025-08-07 02:16:56,731 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c3702dd0-3b45-4813-a940-d72745db962b
2025-08-07 02:16:56,739 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c3702dd0-3b45-4813-a940-d72745db962b
2025-08-07 02:16:56,746 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/6bc57859-c5fd-4105-a406-fbfa090ff125
2025-08-07 02:16:56,758 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-67251749', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23611705', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14024789199902688075', 'uuid-lslong': '11188119804718617266'}, 'enable': 'true', 'created': '2025-08-07T02:16:54', 'last-modified': '2025-08-07T02:16:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030704'}
2025-08-07 02:16:56,766 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 02:16:56,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67251749 passed
2025-08-07 02:16:56,766 - DEBUG - ====Verifying policy data for ctest-vn-67251749 in API_Server ======
2025-08-07 02:16:56,766 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-08-07 02:16:56,772 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d
2025-08-07 02:16:56,784 - DEBUG - Requesting: http://10.0.0.129:8082/project/9381d31a-0454-4f5b-93b3-915e26f6adaa
2025-08-07 02:16:56,862 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/c2a20f78-85ef-434b-9b44-2faf68c412b2
2025-08-07 02:16:56,873 - DEBUG - ==>Verifying data for policy with id: 2216b43d-1706-4226-9119-17c5e81a48db, fqn: ['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-policy-allow-all-26393564']
2025-08-07 02:16:56,873 - INFO - VN ctest-vn-67251749 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 02:16:56,873 - DEBUG - Verifying the vn in opserver
2025-08-07 02:16:56,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-67251749 virtual network link through opserver 10.0.0.129
2025-08-07 02:16:56,873 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-08-07 02:16:57,206 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-08-07 02:16:57,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-67251749', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-67251749?flat'}
2025-08-07 02:16:57,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-67251749 is found in opserver
2025-08-07 02:16:57,275 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 02:16:57,280 - DEBUG - VRF ids for VN ctest-vn-67251749: {}
2025-08-07 02:16:57,280 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-08-07 02:16:57,286 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d
2025-08-07 02:16:57,299 - DEBUG - Requesting: http://10.0.0.129:8082/project/9381d31a-0454-4f5b-93b3-915e26f6adaa
2025-08-07 02:16:57,376 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d85a48b2-1fca-432b-81de-f0fef88b09d7
2025-08-07 02:16:57,393 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d85a48b2-1fca-432b-81de-f0fef88b09d7
2025-08-07 02:16:57,405 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/37afdfc1-25ec-4d39-99b8-80584248cefe
2025-08-07 02:16:57,413 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/37afdfc1-25ec-4d39-99b8-80584248cefe
2025-08-07 02:16:57,423 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/dc010fea-06c6-45d5-95c5-82e00a3201c9
2025-08-07 02:16:57,430 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 02:16:57,430 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d85a48b2-1fca-432b-81de-f0fef88b09d7
2025-08-07 02:16:57,440 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/37afdfc1-25ec-4d39-99b8-80584248cefe
2025-08-07 02:16:57,456 - INFO - Verified VN network id 12 for VN d85a48b2-1fca-432b-81de-f0fef88b09d7
2025-08-07 02:16:57,456 - INFO - Verifications in API Server for VN ctest-vn-27951499 passed
2025-08-07 02:16:57,456 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d85a48b2-1fca-432b-81de-f0fef88b09d7
2025-08-07 02:16:57,467 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/37afdfc1-25ec-4d39-99b8-80584248cefe
2025-08-07 02:16:57,477 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/37afdfc1-25ec-4d39-99b8-80584248cefe
2025-08-07 02:16:57,485 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/dc010fea-06c6-45d5-95c5-82e00a3201c9
2025-08-07 02:16:57,498 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-27951499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23611705', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15589852989971120939', 'uuid-lslong': '9358182053604690391'}, 'enable': 'true', 'created': '2025-08-07T02:16:55', 'last-modified': '2025-08-07T02:16:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.533198'}
2025-08-07 02:16:57,505 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 02:16:57,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27951499 passed
2025-08-07 02:16:57,505 - DEBUG - ====Verifying policy data for ctest-vn-27951499 in API_Server ======
2025-08-07 02:16:57,505 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-08-07 02:16:57,511 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aef09b26-fe29-4a53-8b7e-dc2c9f7c9d2d
2025-08-07 02:16:57,523 - DEBUG - Requesting: http://10.0.0.129:8082/project/9381d31a-0454-4f5b-93b3-915e26f6adaa
2025-08-07 02:16:57,599 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d85a48b2-1fca-432b-81de-f0fef88b09d7
2025-08-07 02:16:57,610 - DEBUG - ==>Verifying data for policy with id: 2216b43d-1706-4226-9119-17c5e81a48db, fqn: ['default-domain', 'ctest-TestBasicPolicy-23611705', 'ctest-policy-allow-all-26393564']
2025-08-07 02:16:57,610 - INFO - VN ctest-vn-27951499 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 02:16:57,611 - DEBUG - Verifying the vn in opserver
2025-08-07 02:16:57,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-27951499 virtual network link through opserver 10.0.0.129
2025-08-07 02:16:57,611 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-08-07 02:16:57,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-27951499', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-27951499?flat'}
2025-08-07 02:16:57,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23611705:ctest-vn-27951499 is found in opserver
2025-08-07 02:16:57,633 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 02:16:57,639 - DEBUG - VRF ids for VN ctest-vn-27951499: {}
2025-08-07 02:16:57,699 - DEBUG - Services list from nova: [