2025-04-16 21:34:42,211 - INFO - Domain Default found not creating
2025-04-16 21:34:42,397 - INFO - Project ctest-TestBasicPolicy-07960774 not found, creating it
2025-04-16 21:34:42,921 - INFO - Created Project:ctest-TestBasicPolicy-07960774, ID : 33678bfd-189c-4647-a48d-ce92d2a965f0
2025-04-16 21:34:44,531 - INFO - ================================================================================
2025-04-16 21:34:44,531 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-16 21:34:44,531 - 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-16 21:34:44,804 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-16 21:34:44,804 - INFO - Initial checks done. Running the testcase now
2025-04-16 21:34:44,804 - INFO -
2025-04-16 21:34:45,426 - DEBUG - Response for create_network : {'network': {'id': '643de517-1791-40b8-8157-1b3edfdf58fa', 'name': 'ctest-vn-02672986', 'tenant_id': '33678bfd189c4647a48dce92d2a965f0', 'project_id': '33678bfd189c4647a48dce92d2a965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-vn-02672986'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 21:34:45,643 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b66eaf09-bf5b-4dbe-9cfe-b541ac2f9af3', 'name': '', 'tenant_id': '33678bfd189c4647a48dce92d2a965f0', 'network_id': '643de517-1791-40b8-8157-1b3edfdf58fa', 'ip_version': 4, 'cidr': '175.124.161.128/26', 'allocation_pools': [{'start': '175.124.161.130', 'end': '175.124.161.190'}], 'gateway_ip': '175.124.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.124.161.130', 'tags': [], 'project_id': '33678bfd189c4647a48dce92d2a965f0'}}
2025-04-16 21:34:45,666 - INFO - Created VN ctest-vn-02672986
2025-04-16 21:34:45,723 - DEBUG - VN ctest-vn-02672986 UUID is 643de517-1791-40b8-8157-1b3edfdf58fa
2025-04-16 21:34:46,075 - DEBUG - Response for create_network : {'network': {'id': 'bfa089ef-dc33-44c6-a82f-3f8d54629a9b', 'name': 'ctest-vn-35168031', 'tenant_id': '33678bfd189c4647a48dce92d2a965f0', 'project_id': '33678bfd189c4647a48dce92d2a965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-vn-35168031'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 21:34:46,269 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b4dff56-182f-40df-9e5b-0627e57f7709', 'name': '', 'tenant_id': '33678bfd189c4647a48dce92d2a965f0', 'network_id': 'bfa089ef-dc33-44c6-a82f-3f8d54629a9b', 'ip_version': 4, 'cidr': '200.23.132.0/26', 'allocation_pools': [{'start': '200.23.132.2', 'end': '200.23.132.62'}], 'gateway_ip': '200.23.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.23.132.2', 'tags': [], 'project_id': '33678bfd189c4647a48dce92d2a965f0'}}
2025-04-16 21:34:46,290 - INFO - Created VN ctest-vn-35168031
2025-04-16 21:34:46,346 - DEBUG - VN ctest-vn-35168031 UUID is bfa089ef-dc33-44c6-a82f-3f8d54629a9b
2025-04-16 21:34:46,476 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-02672986, 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-07960774:ctest-vn-35168031, 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-16 21:34:46,811 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '643de517-1791-40b8-8157-1b3edfdf58fa', 'name': 'ctest-vn-02672986', 'tenant_id': '33678bfd189c4647a48dce92d2a965f0', 'project_id': '33678bfd189c4647a48dce92d2a965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b66eaf09-bf5b-4dbe-9cfe-b541ac2f9af3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-vn-02672986'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-policy-allow-all-94286058']], 'subnet_ipam': [{'subnet_cidr': '175.124.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 21:34:47,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfa089ef-dc33-44c6-a82f-3f8d54629a9b', 'name': 'ctest-vn-35168031', 'tenant_id': '33678bfd189c4647a48dce92d2a965f0', 'project_id': '33678bfd189c4647a48dce92d2a965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b4dff56-182f-40df-9e5b-0627e57f7709'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-vn-35168031'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-policy-allow-all-94286058']], 'subnet_ipam': [{'subnet_cidr': '200.23.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 21:34:47,271 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-16 21:34:47,574 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-16 21:34:47,604 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04693142-946a-4811-aade-69c10095f4af
2025-04-16 21:34:47,620 - DEBUG - Requesting: http://10.0.0.38:8082/project/33678bfd-189c-4647-a48d-ce92d2a965f0
2025-04-16 21:34:47,698 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/643de517-1791-40b8-8157-1b3edfdf58fa
2025-04-16 21:34:47,712 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/643de517-1791-40b8-8157-1b3edfdf58fa
2025-04-16 21:34:47,729 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348b324b-f732-42ad-80d9-1589e37189f2
2025-04-16 21:34:47,740 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348b324b-f732-42ad-80d9-1589e37189f2
2025-04-16 21:34:47,749 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aba9ed65-ec2b-4c5a-8f45-2c0d934b6398
2025-04-16 21:34:47,759 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 21:34:47,759 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/643de517-1791-40b8-8157-1b3edfdf58fa
2025-04-16 21:34:47,770 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348b324b-f732-42ad-80d9-1589e37189f2
2025-04-16 21:34:47,789 - INFO - Verified VN network id 8 for VN 643de517-1791-40b8-8157-1b3edfdf58fa
2025-04-16 21:34:47,789 - INFO - Verifications in API Server for VN ctest-vn-02672986 passed
2025-04-16 21:34:47,789 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/643de517-1791-40b8-8157-1b3edfdf58fa
2025-04-16 21:34:47,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348b324b-f732-42ad-80d9-1589e37189f2
2025-04-16 21:34:47,809 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/348b324b-f732-42ad-80d9-1589e37189f2
2025-04-16 21:34:47,817 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aba9ed65-ec2b-4c5a-8f45-2c0d934b6398
2025-04-16 21:34:47,832 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-02672986', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07960774', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7223181264714547384', 'uuid-lslong': '9319947910724409594'}, 'enable': 'true', 'created': '2025-04-16T21:34:45', 'last-modified': '2025-04-16T21:34:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.057784'}
2025-04-16 21:34:47,840 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 21:34:47,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02672986 passed
2025-04-16 21:34:47,840 - DEBUG - ====Verifying policy data for ctest-vn-02672986 in API_Server ======
2025-04-16 21:34:47,840 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-16 21:34:47,848 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04693142-946a-4811-aade-69c10095f4af
2025-04-16 21:34:47,864 - DEBUG - Requesting: http://10.0.0.38:8082/project/33678bfd-189c-4647-a48d-ce92d2a965f0
2025-04-16 21:34:47,945 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/643de517-1791-40b8-8157-1b3edfdf58fa
2025-04-16 21:34:47,956 - DEBUG - ==>Verifying data for policy with id: 2e407800-39e7-4a21-908a-cdd0c3f608f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-policy-allow-all-94286058']
2025-04-16 21:34:47,956 - INFO - VN ctest-vn-02672986 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 21:34:47,956 - DEBUG - Verifying the vn in opserver
2025-04-16 21:34:47,956 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-02672986 virtual network link through opserver 10.0.0.38
2025-04-16 21:34:47,957 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-16 21:34:48,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-16 21:34:48,334 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-02672986', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-02672986?flat'}
2025-04-16 21:34:48,335 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-02672986 is found in opserver
2025-04-16 21:34:48,349 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 21:34:48,355 - DEBUG - VRF ids for VN ctest-vn-02672986: {}
2025-04-16 21:34:48,355 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-16 21:34:48,362 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04693142-946a-4811-aade-69c10095f4af
2025-04-16 21:34:48,376 - DEBUG - Requesting: http://10.0.0.38:8082/project/33678bfd-189c-4647-a48d-ce92d2a965f0
2025-04-16 21:34:48,454 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfa089ef-dc33-44c6-a82f-3f8d54629a9b
2025-04-16 21:34:48,470 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfa089ef-dc33-44c6-a82f-3f8d54629a9b
2025-04-16 21:34:48,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b7f56-5bf4-440a-a0c7-c9a9b3dedc90
2025-04-16 21:34:48,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b7f56-5bf4-440a-a0c7-c9a9b3dedc90
2025-04-16 21:34:48,504 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/00e96574-c375-4d9f-9eb1-3e7947c831dc
2025-04-16 21:34:48,513 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 21:34:48,513 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfa089ef-dc33-44c6-a82f-3f8d54629a9b
2025-04-16 21:34:48,526 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b7f56-5bf4-440a-a0c7-c9a9b3dedc90
2025-04-16 21:34:48,544 - INFO - Verified VN network id 9 for VN bfa089ef-dc33-44c6-a82f-3f8d54629a9b
2025-04-16 21:34:48,544 - INFO - Verifications in API Server for VN ctest-vn-35168031 passed
2025-04-16 21:34:48,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfa089ef-dc33-44c6-a82f-3f8d54629a9b
2025-04-16 21:34:48,556 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b7f56-5bf4-440a-a0c7-c9a9b3dedc90
2025-04-16 21:34:48,566 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b7f56-5bf4-440a-a0c7-c9a9b3dedc90
2025-04-16 21:34:48,576 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/00e96574-c375-4d9f-9eb1-3e7947c831dc
2025-04-16 21:34:48,590 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-35168031', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07960774', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13808188120802477254', 'uuid-lslong': '12118974998515980955'}, 'enable': 'true', 'created': '2025-04-16T21:34:46', 'last-modified': '2025-04-16T21:34:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.552669'}
2025-04-16 21:34:48,597 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 21:34:48,597 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35168031 passed
2025-04-16 21:34:48,597 - DEBUG - ====Verifying policy data for ctest-vn-35168031 in API_Server ======
2025-04-16 21:34:48,597 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-16 21:34:48,604 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04693142-946a-4811-aade-69c10095f4af
2025-04-16 21:34:48,617 - DEBUG - Requesting: http://10.0.0.38:8082/project/33678bfd-189c-4647-a48d-ce92d2a965f0
2025-04-16 21:34:48,699 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfa089ef-dc33-44c6-a82f-3f8d54629a9b
2025-04-16 21:34:48,710 - DEBUG - ==>Verifying data for policy with id: 2e407800-39e7-4a21-908a-cdd0c3f608f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-07960774', 'ctest-policy-allow-all-94286058']
2025-04-16 21:34:48,710 - INFO - VN ctest-vn-35168031 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 21:34:48,710 - DEBUG - Verifying the vn in opserver
2025-04-16 21:34:48,710 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-35168031 virtual network link through opserver 10.0.0.38
2025-04-16 21:34:48,710 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-16 21:34:48,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-35168031', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-35168031?flat'}
2025-04-16 21:34:48,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07960774:ctest-vn-35168031 is found in opserver
2025-04-16 21:34:48,735 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 21:34:48,741 - DEBUG - VRF ids for VN ctest-vn-35168031: {}
2025-04-16 21:34:48,808 - DEBUG - Services list from nova: [