2024-08-22 02:37:53,501 - INFO - Domain Default found not creating
2024-08-22 02:37:53,662 - INFO - Project ctest-TestBasicPolicy-66881351 not found, creating it
2024-08-22 02:37:55,717 - INFO - Created Project:ctest-TestBasicPolicy-66881351, ID : 8d5f1a4b-91b8-4fb8-87aa-28621bc57b27
2024-08-22 02:37:57,202 - INFO - ================================================================================
2024-08-22 02:37:57,202 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-22 02:37:57,202 - 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
2024-08-22 02:37:57,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.29': '0'}} with
2024-08-22 02:37:57,464 - INFO - Initial checks done. Running the testcase now
2024-08-22 02:37:57,465 - INFO -
2024-08-22 02:37:58,036 - DEBUG - Response for create_network : {'network': {'id': '88523948-8b01-4bad-a625-61217f63cb47', 'name': 'ctest-vn-55100746', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-55100746'], 'port_security_enabled': True, 'description': ''}}
2024-08-22 02:37:58,208 - DEBUG - Response for create_subnet : {'subnet': {'id': '50eaff16-a844-4dbf-94d4-bb8f1085bf53', 'name': '', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'network_id': '88523948-8b01-4bad-a625-61217f63cb47', 'ip_version': 4, 'cidr': '32.109.58.192/26', 'allocation_pools': [{'start': '32.109.58.194', 'end': '32.109.58.254'}], 'gateway_ip': '32.109.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.109.58.194', 'tags': [], 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27'}}
2024-08-22 02:37:58,227 - INFO - Created VN ctest-vn-55100746
2024-08-22 02:37:58,280 - DEBUG - VN ctest-vn-55100746 UUID is 88523948-8b01-4bad-a625-61217f63cb47
2024-08-22 02:37:58,564 - DEBUG - Response for create_network : {'network': {'id': 'fa33819e-105d-428a-baa3-0c9763256ca8', 'name': 'ctest-vn-70032995', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-70032995'], 'port_security_enabled': True, 'description': ''}}
2024-08-22 02:37:58,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '64f2efc7-c861-41cd-80e4-7cc51a119c84', 'name': '', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'network_id': 'fa33819e-105d-428a-baa3-0c9763256ca8', 'ip_version': 4, 'cidr': '210.192.19.128/26', 'allocation_pools': [{'start': '210.192.19.130', 'end': '210.192.19.190'}], 'gateway_ip': '210.192.19.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.192.19.130', 'tags': [], 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27'}}
2024-08-22 02:37:58,749 - INFO - Created VN ctest-vn-70032995
2024-08-22 02:37:58,800 - DEBUG - VN ctest-vn-70032995 UUID is fa33819e-105d-428a-baa3-0c9763256ca8
2024-08-22 02:37:58,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746, 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-66881351:ctest-vn-70032995, 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]
2024-08-22 02:37:59,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88523948-8b01-4bad-a625-61217f63cb47', 'name': 'ctest-vn-55100746', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50eaff16-a844-4dbf-94d4-bb8f1085bf53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-55100746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139']], 'subnet_ipam': [{'subnet_cidr': '32.109.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-22 02:37:59,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa33819e-105d-428a-baa3-0c9763256ca8', 'name': 'ctest-vn-70032995', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64f2efc7-c861-41cd-80e4-7cc51a119c84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-70032995'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139']], 'subnet_ipam': [{'subnet_cidr': '210.192.19.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-22 02:37:59,588 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-22 02:37:59,885 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-22 02:37:59,917 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1
2024-08-22 02:37:59,931 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27
2024-08-22 02:38:00,004 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47
2024-08-22 02:38:00,018 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47
2024-08-22 02:38:00,028 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92
2024-08-22 02:38:00,036 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92
2024-08-22 02:38:00,044 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/776a855d-8851-4d88-afb3-289b1380fa79
2024-08-22 02:38:00,051 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-22 02:38:00,051 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47
2024-08-22 02:38:00,058 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92
2024-08-22 02:38:00,071 - INFO - Verified VN network id 8 for VN 88523948-8b01-4bad-a625-61217f63cb47
2024-08-22 02:38:00,071 - INFO - Verifications in API Server for VN ctest-vn-55100746 passed
2024-08-22 02:38:00,071 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47
2024-08-22 02:38:00,079 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92
2024-08-22 02:38:00,085 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92
2024-08-22 02:38:00,092 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/776a855d-8851-4d88-afb3-289b1380fa79
2024-08-22 02:38:00,104 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66881351', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9822976720981019565', 'uuid-lslong': '11972081980933393223'}, 'enable': 'true', 'created': '2024-08-22T02:37:58', 'last-modified': '2024-08-22T02:37:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926606'}
2024-08-22 02:38:00,110 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-22 02:38:00,110 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55100746 passed
2024-08-22 02:38:00,111 - DEBUG - ====Verifying policy data for ctest-vn-55100746 in API_Server ======
2024-08-22 02:38:00,111 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-22 02:38:00,116 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1
2024-08-22 02:38:00,128 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27
2024-08-22 02:38:00,193 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47
2024-08-22 02:38:00,201 - DEBUG - ==>Verifying data for policy with id: 83d69c73-8ee4-4831-994a-72704c250dbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139']
2024-08-22 02:38:00,202 - INFO - VN ctest-vn-55100746 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-22 02:38:00,202 - DEBUG - Verifying the vn in opserver
2024-08-22 02:38:00,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746 virtual network link through opserver 10.0.0.36
2024-08-22 02:38:00,202 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-22 02:38:00,496 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-22 02:38:00,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746?flat'}
2024-08-22 02:38:00,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746 is found in opserver
2024-08-22 02:38:00,571 - DEBUG - Do not have enough data to verify VN in agent
2024-08-22 02:38:00,576 - DEBUG - VRF ids for VN ctest-vn-55100746: {}
2024-08-22 02:38:00,576 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-22 02:38:00,582 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1
2024-08-22 02:38:00,593 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27
2024-08-22 02:38:00,664 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8
2024-08-22 02:38:00,675 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8
2024-08-22 02:38:00,683 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b
2024-08-22 02:38:00,689 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b
2024-08-22 02:38:00,696 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/4202c85f-530c-428c-a202-c5fb413e8791
2024-08-22 02:38:00,702 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-22 02:38:00,702 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8
2024-08-22 02:38:00,710 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b
2024-08-22 02:38:00,721 - INFO - Verified VN network id 9 for VN fa33819e-105d-428a-baa3-0c9763256ca8
2024-08-22 02:38:00,721 - INFO - Verifications in API Server for VN ctest-vn-70032995 passed
2024-08-22 02:38:00,721 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8
2024-08-22 02:38:00,730 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b
2024-08-22 02:38:00,737 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b
2024-08-22 02:38:00,743 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/4202c85f-530c-428c-a202-c5fb413e8791
2024-08-22 02:38:00,755 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66881351', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18028896249173590666', 'uuid-lslong': '13448606756601425064'}, 'enable': 'true', 'created': '2024-08-22T02:37:58', 'last-modified': '2024-08-22T02:37:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338201'}
2024-08-22 02:38:00,761 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-22 02:38:00,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70032995 passed
2024-08-22 02:38:00,761 - DEBUG - ====Verifying policy data for ctest-vn-70032995 in API_Server ======
2024-08-22 02:38:00,761 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-08-22 02:38:00,767 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1
2024-08-22 02:38:00,778 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27
2024-08-22 02:38:00,844 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8
2024-08-22 02:38:00,853 - DEBUG - ==>Verifying data for policy with id: 83d69c73-8ee4-4831-994a-72704c250dbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139']
2024-08-22 02:38:00,853 - INFO - VN ctest-vn-70032995 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-22 02:38:00,853 - DEBUG - Verifying the vn in opserver
2024-08-22 02:38:00,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995 virtual network link through opserver 10.0.0.36
2024-08-22 02:38:00,853 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-08-22 02:38:00,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995?flat'}
2024-08-22 02:38:00,864 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995 is found in opserver
2024-08-22 02:38:00,875 - DEBUG - Do not have enough data to verify VN in agent
2024-08-22 02:38:00,881 - DEBUG - VRF ids for VN ctest-vn-70032995: {}
2024-08-22 02:38:00,939 - DEBUG - Services list from nova: [