2025-02-06 02:21:31,423 - INFO - Domain Default found not creating
2025-02-06 02:21:31,554 - INFO - Project ctest-TestBasicPolicy-35373195 not found, creating it
2025-02-06 02:21:31,984 - INFO - Created Project:ctest-TestBasicPolicy-35373195, ID : 6abfe3de-992e-4fa9-b243-1ae862d2fa3a
2025-02-06 02:21:33,468 - INFO - ================================================================================
2025-02-06 02:21:33,468 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-06 02:21:33,468 - 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-06 02:21:33,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.28': '0'}} with
2025-02-06 02:21:33,722 - INFO - Initial checks done. Running the testcase now
2025-02-06 02:21:33,722 - INFO -
2025-02-06 02:21:34,305 - DEBUG - Response for create_network : {'network': {'id': 'f98db07c-95ad-4e15-b833-940319f07180', 'name': 'ctest-vn-37587782', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-37587782'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:34,464 - DEBUG - Response for create_subnet : {'subnet': {'id': '60e9373f-8ba3-4d2a-b5ca-de890431709e', 'name': '', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'network_id': 'f98db07c-95ad-4e15-b833-940319f07180', 'ip_version': 4, 'cidr': '202.40.53.128/26', 'allocation_pools': [{'start': '202.40.53.130', 'end': '202.40.53.190'}], 'gateway_ip': '202.40.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.40.53.130', 'tags': [], 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a'}}
2025-02-06 02:21:34,484 - INFO - Created VN ctest-vn-37587782
2025-02-06 02:21:34,536 - DEBUG - VN ctest-vn-37587782 UUID is f98db07c-95ad-4e15-b833-940319f07180
2025-02-06 02:21:34,842 - DEBUG - Response for create_network : {'network': {'id': 'a171c62d-73f4-4ab5-be14-20102380696b', 'name': 'ctest-vn-26889801', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-26889801'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:35,019 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e5f96cb-434f-4ab0-a58b-07e59117bdfe', 'name': '', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'network_id': 'a171c62d-73f4-4ab5-be14-20102380696b', 'ip_version': 4, 'cidr': '7.76.170.0/26', 'allocation_pools': [{'start': '7.76.170.2', 'end': '7.76.170.62'}], 'gateway_ip': '7.76.170.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.76.170.2', 'tags': [], 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a'}}
2025-02-06 02:21:35,036 - INFO - Created VN ctest-vn-26889801
2025-02-06 02:21:35,084 - DEBUG - VN ctest-vn-26889801 UUID is a171c62d-73f4-4ab5-be14-20102380696b
2025-02-06 02:21:35,232 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782, 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-35373195:ctest-vn-26889801, 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-06 02:21:35,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f98db07c-95ad-4e15-b833-940319f07180', 'name': 'ctest-vn-37587782', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60e9373f-8ba3-4d2a-b5ca-de890431709e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-37587782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888']], 'subnet_ipam': [{'subnet_cidr': '202.40.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:35,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a171c62d-73f4-4ab5-be14-20102380696b', 'name': 'ctest-vn-26889801', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e5f96cb-434f-4ab0-a58b-07e59117bdfe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-26889801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888']], 'subnet_ipam': [{'subnet_cidr': '7.76.170.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 02:21:35,936 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-02-06 02:21:36,267 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-02-06 02:21:36,295 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3
2025-02-06 02:21:36,308 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a
2025-02-06 02:21:36,377 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180
2025-02-06 02:21:36,386 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180
2025-02-06 02:21:36,393 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862
2025-02-06 02:21:36,399 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862
2025-02-06 02:21:36,405 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2b412fab-d469-43b9-8381-634b7ae2827f
2025-02-06 02:21:36,411 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 02:21:36,411 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180
2025-02-06 02:21:36,418 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862
2025-02-06 02:21:36,429 - INFO - Verified VN network id 8 for VN f98db07c-95ad-4e15-b833-940319f07180
2025-02-06 02:21:36,429 - INFO - Verifications in API Server for VN ctest-vn-37587782 passed
2025-02-06 02:21:36,429 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180
2025-02-06 02:21:36,437 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862
2025-02-06 02:21:36,443 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862
2025-02-06 02:21:36,450 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2b412fab-d469-43b9-8381-634b7ae2827f
2025-02-06 02:21:36,464 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35373195', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17982222936293854741', 'uuid-lslong': '13273115267831984512'}, 'enable': 'true', 'created': '2025-02-06T02:21:34', 'last-modified': '2025-02-06T02:21:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962762'}
2025-02-06 02:21:36,473 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 02:21:36,473 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37587782 passed
2025-02-06 02:21:36,473 - DEBUG - ====Verifying policy data for ctest-vn-37587782 in API_Server ======
2025-02-06 02:21:36,473 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-02-06 02:21:36,479 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3
2025-02-06 02:21:36,490 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a
2025-02-06 02:21:36,562 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180
2025-02-06 02:21:36,572 - DEBUG - ==>Verifying data for policy with id: 3a10d802-8652-4529-b1f9-522a23aa17c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888']
2025-02-06 02:21:36,572 - INFO - VN ctest-vn-37587782 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 02:21:36,572 - DEBUG - Verifying the vn in opserver
2025-02-06 02:21:36,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782 virtual network link through opserver 10.0.0.46
2025-02-06 02:21:36,572 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-02-06 02:21:36,903 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-02-06 02:21:36,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782?flat'}
2025-02-06 02:21:36,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782 is found in opserver
2025-02-06 02:21:36,967 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 02:21:36,972 - DEBUG - VRF ids for VN ctest-vn-37587782: {}
2025-02-06 02:21:36,972 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-02-06 02:21:36,978 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3
2025-02-06 02:21:36,989 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a
2025-02-06 02:21:37,053 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b
2025-02-06 02:21:37,062 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b
2025-02-06 02:21:37,070 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0
2025-02-06 02:21:37,076 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0
2025-02-06 02:21:37,082 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/8642cf56-5771-4bbc-b4b3-18045196ec47
2025-02-06 02:21:37,088 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-06 02:21:37,088 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b
2025-02-06 02:21:37,095 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0
2025-02-06 02:21:37,105 - INFO - Verified VN network id 9 for VN a171c62d-73f4-4ab5-be14-20102380696b
2025-02-06 02:21:37,106 - INFO - Verifications in API Server for VN ctest-vn-26889801 passed
2025-02-06 02:21:37,106 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b
2025-02-06 02:21:37,113 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0
2025-02-06 02:21:37,119 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0
2025-02-06 02:21:37,125 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/8642cf56-5771-4bbc-b4b3-18045196ec47
2025-02-06 02:21:37,137 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35373195', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11633297210995919541', 'uuid-lslong': '13696607620427704683'}, 'enable': 'true', 'created': '2025-02-06T02:21:34', 'last-modified': '2025-02-06T02:21:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.392693'}
2025-02-06 02:21:37,143 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-06 02:21:37,143 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26889801 passed
2025-02-06 02:21:37,143 - DEBUG - ====Verifying policy data for ctest-vn-26889801 in API_Server ======
2025-02-06 02:21:37,143 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-02-06 02:21:37,148 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3
2025-02-06 02:21:37,159 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a
2025-02-06 02:21:37,228 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b
2025-02-06 02:21:37,237 - DEBUG - ==>Verifying data for policy with id: 3a10d802-8652-4529-b1f9-522a23aa17c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888']
2025-02-06 02:21:37,237 - INFO - VN ctest-vn-26889801 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 02:21:37,237 - DEBUG - Verifying the vn in opserver
2025-02-06 02:21:37,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801 virtual network link through opserver 10.0.0.46
2025-02-06 02:21:37,238 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-02-06 02:21:37,248 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801?flat'}
2025-02-06 02:21:37,248 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801 is found in opserver
2025-02-06 02:21:37,261 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 02:21:37,267 - DEBUG - VRF ids for VN ctest-vn-26889801: {}
2025-02-06 02:21:37,326 - DEBUG - Services list from nova: [