2025-01-15 05:46:37,827 - INFO - Domain Default found not creating
2025-01-15 05:46:37,979 - INFO - Project ctest-TestBasicPolicy-63244008 not found, creating it
2025-01-15 05:46:38,482 - INFO - Created Project:ctest-TestBasicPolicy-63244008, ID : 1eacf09b-5dd6-4535-84ff-6f1da06f18a0
2025-01-15 05:46:39,971 - INFO - ================================================================================
2025-01-15 05:46:39,971 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 05:46:39,972 - 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-01-15 05:46:40,235 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.13': '0'}} with
2025-01-15 05:46:40,236 - INFO - Initial checks done. Running the testcase now
2025-01-15 05:46:40,236 - INFO -
2025-01-15 05:46:40,803 - DEBUG - Response for create_network : {'network': {'id': 'c34d0f6a-6281-4236-9f42-e08b6bd75d03', 'name': 'ctest-vn-50437767', 'tenant_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'project_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-vn-50437767'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 05:46:40,964 - DEBUG - Response for create_subnet : {'subnet': {'id': '3360f28d-eb55-44f6-adc6-46e3b06dd365', 'name': '', 'tenant_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'network_id': 'c34d0f6a-6281-4236-9f42-e08b6bd75d03', 'ip_version': 4, 'cidr': '50.218.209.192/26', 'allocation_pools': [{'start': '50.218.209.194', 'end': '50.218.209.254'}], 'gateway_ip': '50.218.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.218.209.194', 'tags': [], 'project_id': '1eacf09b5dd6453584ff6f1da06f18a0'}}
2025-01-15 05:46:40,983 - INFO - Created VN ctest-vn-50437767
2025-01-15 05:46:41,037 - DEBUG - VN ctest-vn-50437767 UUID is c34d0f6a-6281-4236-9f42-e08b6bd75d03
2025-01-15 05:46:41,357 - DEBUG - Response for create_network : {'network': {'id': '4bfdabfc-26d6-49c8-81bc-869f57e79d5b', 'name': 'ctest-vn-79542543', 'tenant_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'project_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-vn-79542543'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 05:46:41,580 - DEBUG - Response for create_subnet : {'subnet': {'id': '54beab94-f9c9-4768-bcbe-88d639369e58', 'name': '', 'tenant_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'network_id': '4bfdabfc-26d6-49c8-81bc-869f57e79d5b', 'ip_version': 4, 'cidr': '70.13.69.192/26', 'allocation_pools': [{'start': '70.13.69.194', 'end': '70.13.69.254'}], 'gateway_ip': '70.13.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.13.69.194', 'tags': [], 'project_id': '1eacf09b5dd6453584ff6f1da06f18a0'}}
2025-01-15 05:46:41,600 - INFO - Created VN ctest-vn-79542543
2025-01-15 05:46:41,653 - DEBUG - VN ctest-vn-79542543 UUID is 4bfdabfc-26d6-49c8-81bc-869f57e79d5b
2025-01-15 05:46:41,768 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-50437767, 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-63244008:ctest-vn-79542543, 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-01-15 05:46:42,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c34d0f6a-6281-4236-9f42-e08b6bd75d03', 'name': 'ctest-vn-50437767', 'tenant_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'project_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3360f28d-eb55-44f6-adc6-46e3b06dd365'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-vn-50437767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-policy-allow-all-15133884']], 'subnet_ipam': [{'subnet_cidr': '50.218.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 05:46:42,361 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4bfdabfc-26d6-49c8-81bc-869f57e79d5b', 'name': 'ctest-vn-79542543', 'tenant_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'project_id': '1eacf09b5dd6453584ff6f1da06f18a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54beab94-f9c9-4768-bcbe-88d639369e58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-vn-79542543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-policy-allow-all-15133884']], 'subnet_ipam': [{'subnet_cidr': '70.13.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 05:46:42,510 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-15 05:46:42,809 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-15 05:46:42,837 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9c4c31bb-9813-4977-ae42-1f6bc7d34651
2025-01-15 05:46:42,853 - DEBUG - Requesting: http://10.0.0.35:8082/project/1eacf09b-5dd6-4535-84ff-6f1da06f18a0
2025-01-15 05:46:42,928 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c34d0f6a-6281-4236-9f42-e08b6bd75d03
2025-01-15 05:46:42,940 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c34d0f6a-6281-4236-9f42-e08b6bd75d03
2025-01-15 05:46:42,950 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5eef33fa-259e-434a-9612-02224b1da5de
2025-01-15 05:46:42,958 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5eef33fa-259e-434a-9612-02224b1da5de
2025-01-15 05:46:42,966 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/163ba036-3826-426a-84bc-430a517acf8a
2025-01-15 05:46:42,974 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 05:46:42,974 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c34d0f6a-6281-4236-9f42-e08b6bd75d03
2025-01-15 05:46:42,983 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5eef33fa-259e-434a-9612-02224b1da5de
2025-01-15 05:46:43,000 - INFO - Verified VN network id 8 for VN c34d0f6a-6281-4236-9f42-e08b6bd75d03
2025-01-15 05:46:43,000 - INFO - Verifications in API Server for VN ctest-vn-50437767 passed
2025-01-15 05:46:43,000 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c34d0f6a-6281-4236-9f42-e08b6bd75d03
2025-01-15 05:46:43,011 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5eef33fa-259e-434a-9612-02224b1da5de
2025-01-15 05:46:43,019 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5eef33fa-259e-434a-9612-02224b1da5de
2025-01-15 05:46:43,028 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/163ba036-3826-426a-84bc-430a517acf8a
2025-01-15 05:46:43,041 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-50437767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63244008', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14072921360196256310', 'uuid-lslong': '11475981689907797251'}, 'enable': 'true', 'created': '2025-01-15T05:46:40', 'last-modified': '2025-01-15T05:46:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990064'}
2025-01-15 05:46:43,048 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 05:46:43,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50437767 passed
2025-01-15 05:46:43,049 - DEBUG - ====Verifying policy data for ctest-vn-50437767 in API_Server ======
2025-01-15 05:46:43,049 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-15 05:46:43,055 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9c4c31bb-9813-4977-ae42-1f6bc7d34651
2025-01-15 05:46:43,068 - DEBUG - Requesting: http://10.0.0.35:8082/project/1eacf09b-5dd6-4535-84ff-6f1da06f18a0
2025-01-15 05:46:43,143 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c34d0f6a-6281-4236-9f42-e08b6bd75d03
2025-01-15 05:46:43,154 - DEBUG - ==>Verifying data for policy with id: 793dd4c0-6f9b-4f09-8a50-1a34dc74cf87, fqn: ['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-policy-allow-all-15133884']
2025-01-15 05:46:43,154 - INFO - VN ctest-vn-50437767 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 05:46:43,154 - DEBUG - Verifying the vn in opserver
2025-01-15 05:46:43,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-50437767 virtual network link through opserver 10.0.0.35
2025-01-15 05:46:43,154 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-15 05:46:43,455 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-15 05:46:43,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-50437767', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-50437767?flat'}
2025-01-15 05:46:43,511 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-50437767 is found in opserver
2025-01-15 05:46:43,522 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 05:46:43,527 - DEBUG - VRF ids for VN ctest-vn-50437767: {}
2025-01-15 05:46:43,528 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-15 05:46:43,534 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9c4c31bb-9813-4977-ae42-1f6bc7d34651
2025-01-15 05:46:43,546 - DEBUG - Requesting: http://10.0.0.35:8082/project/1eacf09b-5dd6-4535-84ff-6f1da06f18a0
2025-01-15 05:46:43,620 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/4bfdabfc-26d6-49c8-81bc-869f57e79d5b
2025-01-15 05:46:43,633 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/4bfdabfc-26d6-49c8-81bc-869f57e79d5b
2025-01-15 05:46:43,643 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e1c3477e-4949-421f-a291-92d8db32a8b2
2025-01-15 05:46:43,651 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e1c3477e-4949-421f-a291-92d8db32a8b2
2025-01-15 05:46:43,659 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/0458be27-921b-40a3-b94a-8e240bec97b8
2025-01-15 05:46:43,665 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 05:46:43,665 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/4bfdabfc-26d6-49c8-81bc-869f57e79d5b
2025-01-15 05:46:43,674 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e1c3477e-4949-421f-a291-92d8db32a8b2
2025-01-15 05:46:43,690 - INFO - Verified VN network id 9 for VN 4bfdabfc-26d6-49c8-81bc-869f57e79d5b
2025-01-15 05:46:43,690 - INFO - Verifications in API Server for VN ctest-vn-79542543 passed
2025-01-15 05:46:43,690 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/4bfdabfc-26d6-49c8-81bc-869f57e79d5b
2025-01-15 05:46:43,699 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e1c3477e-4949-421f-a291-92d8db32a8b2
2025-01-15 05:46:43,706 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e1c3477e-4949-421f-a291-92d8db32a8b2
2025-01-15 05:46:43,712 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/0458be27-921b-40a3-b94a-8e240bec97b8
2025-01-15 05:46:43,725 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-79542543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63244008', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5475721821424077256', 'uuid-lslong': '9348494945447026011'}, 'enable': 'true', 'created': '2025-01-15T05:46:41', 'last-modified': '2025-01-15T05:46:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430268'}
2025-01-15 05:46:43,732 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 05:46:43,732 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79542543 passed
2025-01-15 05:46:43,732 - DEBUG - ====Verifying policy data for ctest-vn-79542543 in API_Server ======
2025-01-15 05:46:43,732 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-15 05:46:43,738 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9c4c31bb-9813-4977-ae42-1f6bc7d34651
2025-01-15 05:46:43,750 - DEBUG - Requesting: http://10.0.0.35:8082/project/1eacf09b-5dd6-4535-84ff-6f1da06f18a0
2025-01-15 05:46:43,818 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/4bfdabfc-26d6-49c8-81bc-869f57e79d5b
2025-01-15 05:46:43,828 - DEBUG - ==>Verifying data for policy with id: 793dd4c0-6f9b-4f09-8a50-1a34dc74cf87, fqn: ['default-domain', 'ctest-TestBasicPolicy-63244008', 'ctest-policy-allow-all-15133884']
2025-01-15 05:46:43,828 - INFO - VN ctest-vn-79542543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 05:46:43,828 - DEBUG - Verifying the vn in opserver
2025-01-15 05:46:43,828 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-79542543 virtual network link through opserver 10.0.0.35
2025-01-15 05:46:43,828 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-15 05:46:43,839 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-79542543', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-79542543?flat'}
2025-01-15 05:46:43,839 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63244008:ctest-vn-79542543 is found in opserver
2025-01-15 05:46:43,850 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 05:46:43,855 - DEBUG - VRF ids for VN ctest-vn-79542543: {}
2025-01-15 05:46:43,922 - DEBUG - Services list from nova: [