2025-04-21 13:59:54,919 - INFO - Domain Default found not creating
2025-04-21 13:59:55,069 - INFO - Project ctest-TestBasicPolicy-42616009 not found, creating it
2025-04-21 13:59:55,530 - INFO - Created Project:ctest-TestBasicPolicy-42616009, ID : 994f9816-e732-44fa-a3fe-bb98a540609a
2025-04-21 13:59:56,955 - INFO - ================================================================================
2025-04-21 13:59:56,955 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-21 13:59:56,956 - 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-21 13:59:57,213 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-21 13:59:57,213 - INFO - Initial checks done. Running the testcase now
2025-04-21 13:59:57,213 - INFO -
2025-04-21 13:59:57,770 - DEBUG - Response for create_network : {'network': {'id': 'f379e6ac-c17c-400a-a1f2-5df952ca110b', 'name': 'ctest-vn-08412475', 'tenant_id': '994f9816e73244faa3febb98a540609a', 'project_id': '994f9816e73244faa3febb98a540609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-vn-08412475'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 13:59:57,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '594c163e-4b2f-4ebf-a67d-fd7c1fb7d911', 'name': '', 'tenant_id': '994f9816e73244faa3febb98a540609a', 'network_id': 'f379e6ac-c17c-400a-a1f2-5df952ca110b', 'ip_version': 4, 'cidr': '34.66.184.64/26', 'allocation_pools': [{'start': '34.66.184.66', 'end': '34.66.184.126'}], 'gateway_ip': '34.66.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.66.184.66', 'tags': [], 'project_id': '994f9816e73244faa3febb98a540609a'}}
2025-04-21 13:59:57,995 - INFO - Created VN ctest-vn-08412475
2025-04-21 13:59:58,047 - DEBUG - VN ctest-vn-08412475 UUID is f379e6ac-c17c-400a-a1f2-5df952ca110b
2025-04-21 13:59:58,329 - DEBUG - Response for create_network : {'network': {'id': '190a7cc0-6ade-4623-b6ea-a4a19c45d737', 'name': 'ctest-vn-00618418', 'tenant_id': '994f9816e73244faa3febb98a540609a', 'project_id': '994f9816e73244faa3febb98a540609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-vn-00618418'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 13:59:58,560 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec9170b2-ca6d-4308-a11e-e374e4f8dca8', 'name': '', 'tenant_id': '994f9816e73244faa3febb98a540609a', 'network_id': '190a7cc0-6ade-4623-b6ea-a4a19c45d737', 'ip_version': 4, 'cidr': '123.63.215.192/26', 'allocation_pools': [{'start': '123.63.215.194', 'end': '123.63.215.254'}], 'gateway_ip': '123.63.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.63.215.194', 'tags': [], 'project_id': '994f9816e73244faa3febb98a540609a'}}
2025-04-21 13:59:58,580 - INFO - Created VN ctest-vn-00618418
2025-04-21 13:59:58,635 - DEBUG - VN ctest-vn-00618418 UUID is 190a7cc0-6ade-4623-b6ea-a4a19c45d737
2025-04-21 13:59:58,746 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-08412475, 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-42616009:ctest-vn-00618418, 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-21 13:59:59,041 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f379e6ac-c17c-400a-a1f2-5df952ca110b', 'name': 'ctest-vn-08412475', 'tenant_id': '994f9816e73244faa3febb98a540609a', 'project_id': '994f9816e73244faa3febb98a540609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['594c163e-4b2f-4ebf-a67d-fd7c1fb7d911'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-vn-08412475'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-policy-allow-all-69140283']], 'subnet_ipam': [{'subnet_cidr': '34.66.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 13:59:59,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '190a7cc0-6ade-4623-b6ea-a4a19c45d737', 'name': 'ctest-vn-00618418', 'tenant_id': '994f9816e73244faa3febb98a540609a', 'project_id': '994f9816e73244faa3febb98a540609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec9170b2-ca6d-4308-a11e-e374e4f8dca8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-vn-00618418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-policy-allow-all-69140283']], 'subnet_ipam': [{'subnet_cidr': '123.63.215.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 13:59:59,487 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 13:59:59,786 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 13:59:59,813 - DEBUG - Requesting: http://10.0.0.38:8082/domain/45f47266-a991-4b95-85f2-f3fc05eec8f7
2025-04-21 13:59:59,827 - DEBUG - Requesting: http://10.0.0.38:8082/project/994f9816-e732-44fa-a3fe-bb98a540609a
2025-04-21 13:59:59,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f379e6ac-c17c-400a-a1f2-5df952ca110b
2025-04-21 13:59:59,911 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f379e6ac-c17c-400a-a1f2-5df952ca110b
2025-04-21 13:59:59,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1996e72f-c06d-4204-bf21-7a508cac93a4
2025-04-21 13:59:59,930 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1996e72f-c06d-4204-bf21-7a508cac93a4
2025-04-21 13:59:59,937 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0cc8a88a-f6e0-46ab-a18e-93026520d204
2025-04-21 13:59:59,946 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 13:59:59,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f379e6ac-c17c-400a-a1f2-5df952ca110b
2025-04-21 13:59:59,956 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1996e72f-c06d-4204-bf21-7a508cac93a4
2025-04-21 13:59:59,971 - INFO - Verified VN network id 8 for VN f379e6ac-c17c-400a-a1f2-5df952ca110b
2025-04-21 13:59:59,971 - INFO - Verifications in API Server for VN ctest-vn-08412475 passed
2025-04-21 13:59:59,971 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f379e6ac-c17c-400a-a1f2-5df952ca110b
2025-04-21 13:59:59,981 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1996e72f-c06d-4204-bf21-7a508cac93a4
2025-04-21 13:59:59,988 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1996e72f-c06d-4204-bf21-7a508cac93a4
2025-04-21 13:59:59,996 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0cc8a88a-f6e0-46ab-a18e-93026520d204
2025-04-21 14:00:00,010 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-08412475', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42616009', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17544307453053386762', 'uuid-lslong': '11669492909887590667'}, 'enable': 'true', 'created': '2025-04-21T13:59:57', 'last-modified': '2025-04-21T13:59:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993755'}
2025-04-21 14:00:00,018 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 14:00:00,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08412475 passed
2025-04-21 14:00:00,018 - DEBUG - ====Verifying policy data for ctest-vn-08412475 in API_Server ======
2025-04-21 14:00:00,018 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 14:00:00,026 - DEBUG - Requesting: http://10.0.0.38:8082/domain/45f47266-a991-4b95-85f2-f3fc05eec8f7
2025-04-21 14:00:00,041 - DEBUG - Requesting: http://10.0.0.38:8082/project/994f9816-e732-44fa-a3fe-bb98a540609a
2025-04-21 14:00:00,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f379e6ac-c17c-400a-a1f2-5df952ca110b
2025-04-21 14:00:00,128 - DEBUG - ==>Verifying data for policy with id: 122f0a02-88df-461b-84e9-92fa6dfeb1db, fqn: ['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-policy-allow-all-69140283']
2025-04-21 14:00:00,128 - INFO - VN ctest-vn-08412475 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 14:00:00,128 - DEBUG - Verifying the vn in opserver
2025-04-21 14:00:00,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-08412475 virtual network link through opserver 10.0.0.38
2025-04-21 14:00:00,128 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-21 14:00:00,432 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-21 14:00:00,490 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-08412475', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-08412475?flat'}
2025-04-21 14:00:00,490 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-08412475 is found in opserver
2025-04-21 14:00:00,508 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 14:00:00,515 - DEBUG - VRF ids for VN ctest-vn-08412475: {}
2025-04-21 14:00:00,515 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 14:00:00,523 - DEBUG - Requesting: http://10.0.0.38:8082/domain/45f47266-a991-4b95-85f2-f3fc05eec8f7
2025-04-21 14:00:00,537 - DEBUG - Requesting: http://10.0.0.38:8082/project/994f9816-e732-44fa-a3fe-bb98a540609a
2025-04-21 14:00:00,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/190a7cc0-6ade-4623-b6ea-a4a19c45d737
2025-04-21 14:00:00,628 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/190a7cc0-6ade-4623-b6ea-a4a19c45d737
2025-04-21 14:00:00,639 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c88c0c6-945a-483d-bbdb-c9650b21fb3d
2025-04-21 14:00:00,648 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c88c0c6-945a-483d-bbdb-c9650b21fb3d
2025-04-21 14:00:00,656 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cd6008b5-0638-4317-9142-ff6f416ae178
2025-04-21 14:00:00,665 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 14:00:00,665 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/190a7cc0-6ade-4623-b6ea-a4a19c45d737
2025-04-21 14:00:00,675 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c88c0c6-945a-483d-bbdb-c9650b21fb3d
2025-04-21 14:00:00,695 - INFO - Verified VN network id 9 for VN 190a7cc0-6ade-4623-b6ea-a4a19c45d737
2025-04-21 14:00:00,695 - INFO - Verifications in API Server for VN ctest-vn-00618418 passed
2025-04-21 14:00:00,695 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/190a7cc0-6ade-4623-b6ea-a4a19c45d737
2025-04-21 14:00:00,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c88c0c6-945a-483d-bbdb-c9650b21fb3d
2025-04-21 14:00:00,714 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c88c0c6-945a-483d-bbdb-c9650b21fb3d
2025-04-21 14:00:00,723 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cd6008b5-0638-4317-9142-ff6f416ae178
2025-04-21 14:00:00,737 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-00618418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42616009', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1804391766583821859', 'uuid-lslong': '13180528273471690551'}, 'enable': 'true', 'created': '2025-04-21T13:59:58', 'last-modified': '2025-04-21T13:59:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.471715'}
2025-04-21 14:00:00,744 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 14:00:00,744 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00618418 passed
2025-04-21 14:00:00,744 - DEBUG - ====Verifying policy data for ctest-vn-00618418 in API_Server ======
2025-04-21 14:00:00,744 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-21 14:00:00,751 - DEBUG - Requesting: http://10.0.0.38:8082/domain/45f47266-a991-4b95-85f2-f3fc05eec8f7
2025-04-21 14:00:00,764 - DEBUG - Requesting: http://10.0.0.38:8082/project/994f9816-e732-44fa-a3fe-bb98a540609a
2025-04-21 14:00:00,840 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/190a7cc0-6ade-4623-b6ea-a4a19c45d737
2025-04-21 14:00:00,853 - DEBUG - ==>Verifying data for policy with id: 122f0a02-88df-461b-84e9-92fa6dfeb1db, fqn: ['default-domain', 'ctest-TestBasicPolicy-42616009', 'ctest-policy-allow-all-69140283']
2025-04-21 14:00:00,853 - INFO - VN ctest-vn-00618418 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 14:00:00,853 - DEBUG - Verifying the vn in opserver
2025-04-21 14:00:00,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-00618418 virtual network link through opserver 10.0.0.38
2025-04-21 14:00:00,853 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-21 14:00:00,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-00618418', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-00618418?flat'}
2025-04-21 14:00:00,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42616009:ctest-vn-00618418 is found in opserver
2025-04-21 14:00:00,877 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 14:00:00,884 - DEBUG - VRF ids for VN ctest-vn-00618418: {}
2025-04-21 14:00:00,943 - DEBUG - Services list from nova: [