2025-02-14 13:54:13,817 - INFO - Domain Default found not creating
2025-02-14 13:54:13,990 - INFO - Project ctest-TestBasicPolicy-57408962 not found, creating it
2025-02-14 13:54:14,509 - INFO - Created Project:ctest-TestBasicPolicy-57408962, ID : 57cb8beb-6b59-400a-90e2-a36ee1169e62
2025-02-14 13:54:16,144 - INFO - ================================================================================
2025-02-14 13:54:16,144 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-14 13:54:16,144 - 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-02-14 13:54:16,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.27': '0'}} with
2025-02-14 13:54:16,405 - INFO - Initial checks done. Running the testcase now
2025-02-14 13:54:16,405 - INFO -
2025-02-14 13:54:17,026 - DEBUG - Response for create_network : {'network': {'id': 'af06a050-ae37-4d69-9156-c078d49975fb', 'name': 'ctest-vn-25204478', 'tenant_id': '57cb8beb6b59400a90e2a36ee1169e62', 'project_id': '57cb8beb6b59400a90e2a36ee1169e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-vn-25204478'], 'port_security_enabled': True, 'description': ''}}
2025-02-14 13:54:17,253 - DEBUG - Response for create_subnet : {'subnet': {'id': '7921bc2f-b738-4e46-9610-cc304fde6f8b', 'name': '', 'tenant_id': '57cb8beb6b59400a90e2a36ee1169e62', 'network_id': 'af06a050-ae37-4d69-9156-c078d49975fb', 'ip_version': 4, 'cidr': '130.131.242.192/26', 'allocation_pools': [{'start': '130.131.242.194', 'end': '130.131.242.254'}], 'gateway_ip': '130.131.242.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.131.242.194', 'tags': [], 'project_id': '57cb8beb6b59400a90e2a36ee1169e62'}}
2025-02-14 13:54:17,279 - INFO - Created VN ctest-vn-25204478
2025-02-14 13:54:17,334 - DEBUG - VN ctest-vn-25204478 UUID is af06a050-ae37-4d69-9156-c078d49975fb
2025-02-14 13:54:17,688 - DEBUG - Response for create_network : {'network': {'id': '45de4415-e4fc-4b26-8873-068af46e25e2', 'name': 'ctest-vn-46856293', 'tenant_id': '57cb8beb6b59400a90e2a36ee1169e62', 'project_id': '57cb8beb6b59400a90e2a36ee1169e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-vn-46856293'], 'port_security_enabled': True, 'description': ''}}
2025-02-14 13:54:17,933 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1c2abcb-99bc-41eb-b141-2e9b79a11fff', 'name': '', 'tenant_id': '57cb8beb6b59400a90e2a36ee1169e62', 'network_id': '45de4415-e4fc-4b26-8873-068af46e25e2', 'ip_version': 4, 'cidr': '132.31.43.192/26', 'allocation_pools': [{'start': '132.31.43.194', 'end': '132.31.43.254'}], 'gateway_ip': '132.31.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.31.43.194', 'tags': [], 'project_id': '57cb8beb6b59400a90e2a36ee1169e62'}}
2025-02-14 13:54:17,957 - INFO - Created VN ctest-vn-46856293
2025-02-14 13:54:18,014 - DEBUG - VN ctest-vn-46856293 UUID is 45de4415-e4fc-4b26-8873-068af46e25e2
2025-02-14 13:54:18,152 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-25204478, 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-57408962:ctest-vn-46856293, 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-02-14 13:54:18,506 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af06a050-ae37-4d69-9156-c078d49975fb', 'name': 'ctest-vn-25204478', 'tenant_id': '57cb8beb6b59400a90e2a36ee1169e62', 'project_id': '57cb8beb6b59400a90e2a36ee1169e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7921bc2f-b738-4e46-9610-cc304fde6f8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-vn-25204478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-policy-allow-all-85312345']], 'subnet_ipam': [{'subnet_cidr': '130.131.242.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-14 13:54:18,736 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45de4415-e4fc-4b26-8873-068af46e25e2', 'name': 'ctest-vn-46856293', 'tenant_id': '57cb8beb6b59400a90e2a36ee1169e62', 'project_id': '57cb8beb6b59400a90e2a36ee1169e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1c2abcb-99bc-41eb-b141-2e9b79a11fff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-vn-46856293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-policy-allow-all-85312345']], 'subnet_ipam': [{'subnet_cidr': '132.31.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-14 13:54:18,894 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-14 13:54:19,234 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-14 13:54:19,264 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9aea3087-3d29-40b4-b32f-f12c857437f3
2025-02-14 13:54:19,282 - DEBUG - Requesting: http://10.0.0.29:8082/project/57cb8beb-6b59-400a-90e2-a36ee1169e62
2025-02-14 13:54:19,363 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/af06a050-ae37-4d69-9156-c078d49975fb
2025-02-14 13:54:19,379 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/af06a050-ae37-4d69-9156-c078d49975fb
2025-02-14 13:54:19,394 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/29d2be6b-abd1-481d-8a65-16d3e347c091
2025-02-14 13:54:19,405 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/29d2be6b-abd1-481d-8a65-16d3e347c091
2025-02-14 13:54:19,416 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ddb90ed7-493c-40f7-8a73-582520a814fa
2025-02-14 13:54:19,427 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-14 13:54:19,427 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/af06a050-ae37-4d69-9156-c078d49975fb
2025-02-14 13:54:19,444 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/29d2be6b-abd1-481d-8a65-16d3e347c091
2025-02-14 13:54:19,467 - INFO - Verified VN network id 9 for VN af06a050-ae37-4d69-9156-c078d49975fb
2025-02-14 13:54:19,467 - INFO - Verifications in API Server for VN ctest-vn-25204478 passed
2025-02-14 13:54:19,467 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/af06a050-ae37-4d69-9156-c078d49975fb
2025-02-14 13:54:19,483 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/29d2be6b-abd1-481d-8a65-16d3e347c091
2025-02-14 13:54:19,495 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/29d2be6b-abd1-481d-8a65-16d3e347c091
2025-02-14 13:54:19,505 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ddb90ed7-493c-40f7-8a73-582520a814fa
2025-02-14 13:54:19,523 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-25204478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57408962', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12611944074878340457', 'uuid-lslong': '10472769608692102651'}, 'enable': 'true', 'created': '2025-02-14T13:54:16', 'last-modified': '2025-02-14T13:54:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052943'}
2025-02-14 13:54:19,531 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-14 13:54:19,531 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25204478 passed
2025-02-14 13:54:19,532 - DEBUG - ====Verifying policy data for ctest-vn-25204478 in API_Server ======
2025-02-14 13:54:19,532 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-14 13:54:19,539 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9aea3087-3d29-40b4-b32f-f12c857437f3
2025-02-14 13:54:19,553 - DEBUG - Requesting: http://10.0.0.29:8082/project/57cb8beb-6b59-400a-90e2-a36ee1169e62
2025-02-14 13:54:19,710 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/af06a050-ae37-4d69-9156-c078d49975fb
2025-02-14 13:54:19,729 - DEBUG - ==>Verifying data for policy with id: 863b1b58-1db2-49c8-bb34-08bd350a4dd8, fqn: ['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-policy-allow-all-85312345']
2025-02-14 13:54:19,729 - INFO - VN ctest-vn-25204478 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-14 13:54:19,729 - DEBUG - Verifying the vn in opserver
2025-02-14 13:54:19,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-25204478 virtual network link through opserver 10.0.0.29
2025-02-14 13:54:19,730 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-02-14 13:54:20,111 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-02-14 13:54:20,216 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-25204478', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-25204478?flat'}
2025-02-14 13:54:20,216 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-25204478 is found in opserver
2025-02-14 13:54:20,232 - DEBUG - Do not have enough data to verify VN in agent
2025-02-14 13:54:20,239 - DEBUG - VRF ids for VN ctest-vn-25204478: {}
2025-02-14 13:54:20,239 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-14 13:54:20,270 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9aea3087-3d29-40b4-b32f-f12c857437f3
2025-02-14 13:54:20,292 - DEBUG - Requesting: http://10.0.0.29:8082/project/57cb8beb-6b59-400a-90e2-a36ee1169e62
2025-02-14 13:54:20,423 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/45de4415-e4fc-4b26-8873-068af46e25e2
2025-02-14 13:54:20,461 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/45de4415-e4fc-4b26-8873-068af46e25e2
2025-02-14 13:54:20,479 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d69135b-eada-401f-99af-1ded2dd96975
2025-02-14 13:54:20,496 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d69135b-eada-401f-99af-1ded2dd96975
2025-02-14 13:54:20,510 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/57481db8-6b89-4c76-b851-a5b4c241e311
2025-02-14 13:54:20,532 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-14 13:54:20,532 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/45de4415-e4fc-4b26-8873-068af46e25e2
2025-02-14 13:54:20,548 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d69135b-eada-401f-99af-1ded2dd96975
2025-02-14 13:54:20,568 - INFO - Verified VN network id 10 for VN 45de4415-e4fc-4b26-8873-068af46e25e2
2025-02-14 13:54:20,568 - INFO - Verifications in API Server for VN ctest-vn-46856293 passed
2025-02-14 13:54:20,568 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/45de4415-e4fc-4b26-8873-068af46e25e2
2025-02-14 13:54:20,586 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d69135b-eada-401f-99af-1ded2dd96975
2025-02-14 13:54:20,617 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/7d69135b-eada-401f-99af-1ded2dd96975
2025-02-14 13:54:20,633 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/57481db8-6b89-4c76-b851-a5b4c241e311
2025-02-14 13:54:20,671 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-46856293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57408962', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5034536294273534758', 'uuid-lslong': '9832209605356037602'}, 'enable': 'true', 'created': '2025-02-14T13:54:17', 'last-modified': '2025-02-14T13:54:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.954937'}
2025-02-14 13:54:20,680 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-14 13:54:20,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46856293 passed
2025-02-14 13:54:20,681 - DEBUG - ====Verifying policy data for ctest-vn-46856293 in API_Server ======
2025-02-14 13:54:20,681 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-02-14 13:54:20,700 - DEBUG - Requesting: http://10.0.0.29:8082/domain/9aea3087-3d29-40b4-b32f-f12c857437f3
2025-02-14 13:54:20,723 - DEBUG - Requesting: http://10.0.0.29:8082/project/57cb8beb-6b59-400a-90e2-a36ee1169e62
2025-02-14 13:54:20,807 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/45de4415-e4fc-4b26-8873-068af46e25e2
2025-02-14 13:54:20,819 - DEBUG - ==>Verifying data for policy with id: 863b1b58-1db2-49c8-bb34-08bd350a4dd8, fqn: ['default-domain', 'ctest-TestBasicPolicy-57408962', 'ctest-policy-allow-all-85312345']
2025-02-14 13:54:20,819 - INFO - VN ctest-vn-46856293 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-14 13:54:20,819 - DEBUG - Verifying the vn in opserver
2025-02-14 13:54:20,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-46856293 virtual network link through opserver 10.0.0.29
2025-02-14 13:54:20,819 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-02-14 13:54:20,831 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-46856293', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-46856293?flat'}
2025-02-14 13:54:20,831 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57408962:ctest-vn-46856293 is found in opserver
2025-02-14 13:54:20,843 - DEBUG - Do not have enough data to verify VN in agent
2025-02-14 13:54:20,849 - DEBUG - VRF ids for VN ctest-vn-46856293: {}
2025-02-14 13:54:20,912 - DEBUG - Services list from nova: [