2025-06-04 14:20:50,641 - INFO - Domain Default found not creating
2025-06-04 14:20:50,806 - INFO - Project ctest-TestBasicPolicy-67477209 not found, creating it
2025-06-04 14:20:51,272 - INFO - Created Project:ctest-TestBasicPolicy-67477209, ID : 53e0d819-e4c1-4e28-8366-cb1960007e63
2025-06-04 14:20:52,800 - INFO - ================================================================================
2025-06-04 14:20:52,800 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-04 14:20:52,801 - 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-06-04 14:20:53,057 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with
2025-06-04 14:20:53,057 - INFO - Initial checks done. Running the testcase now
2025-06-04 14:20:53,057 - INFO -
2025-06-04 14:20:53,616 - DEBUG - Response for create_network : {'network': {'id': '8533e38d-ad9b-44bc-9b00-02bf24c15a4f', 'name': 'ctest-vn-78231443', 'tenant_id': '53e0d819e4c14e288366cb1960007e63', 'project_id': '53e0d819e4c14e288366cb1960007e63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-vn-78231443'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 14:20:53,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cb944d2-f7c7-43bb-a8af-a92b926c1ea8', 'name': '', 'tenant_id': '53e0d819e4c14e288366cb1960007e63', 'network_id': '8533e38d-ad9b-44bc-9b00-02bf24c15a4f', 'ip_version': 4, 'cidr': '46.6.63.64/26', 'allocation_pools': [{'start': '46.6.63.66', 'end': '46.6.63.126'}], 'gateway_ip': '46.6.63.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.6.63.66', 'tags': [], 'project_id': '53e0d819e4c14e288366cb1960007e63'}}
2025-06-04 14:20:53,801 - INFO - Created VN ctest-vn-78231443
2025-06-04 14:20:53,854 - DEBUG - VN ctest-vn-78231443 UUID is 8533e38d-ad9b-44bc-9b00-02bf24c15a4f
2025-06-04 14:20:54,178 - DEBUG - Response for create_network : {'network': {'id': 'a72d6c90-c9df-4c22-b755-fc08a3be51d6', 'name': 'ctest-vn-67715505', 'tenant_id': '53e0d819e4c14e288366cb1960007e63', 'project_id': '53e0d819e4c14e288366cb1960007e63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-vn-67715505'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 14:20:54,339 - DEBUG - Response for create_subnet : {'subnet': {'id': '12ef0386-d68a-4b41-a03b-52c993d8e344', 'name': '', 'tenant_id': '53e0d819e4c14e288366cb1960007e63', 'network_id': 'a72d6c90-c9df-4c22-b755-fc08a3be51d6', 'ip_version': 4, 'cidr': '198.22.48.64/26', 'allocation_pools': [{'start': '198.22.48.66', 'end': '198.22.48.126'}], 'gateway_ip': '198.22.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.22.48.66', 'tags': [], 'project_id': '53e0d819e4c14e288366cb1960007e63'}}
2025-06-04 14:20:54,371 - INFO - Created VN ctest-vn-67715505
2025-06-04 14:20:54,426 - DEBUG - VN ctest-vn-67715505 UUID is a72d6c90-c9df-4c22-b755-fc08a3be51d6
2025-06-04 14:20:54,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-78231443, 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-67477209:ctest-vn-67715505, 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-06-04 14:20:54,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8533e38d-ad9b-44bc-9b00-02bf24c15a4f', 'name': 'ctest-vn-78231443', 'tenant_id': '53e0d819e4c14e288366cb1960007e63', 'project_id': '53e0d819e4c14e288366cb1960007e63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0cb944d2-f7c7-43bb-a8af-a92b926c1ea8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-vn-78231443'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-policy-allow-all-42865207']], 'subnet_ipam': [{'subnet_cidr': '46.6.63.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-04 14:20:55,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a72d6c90-c9df-4c22-b755-fc08a3be51d6', 'name': 'ctest-vn-67715505', 'tenant_id': '53e0d819e4c14e288366cb1960007e63', 'project_id': '53e0d819e4c14e288366cb1960007e63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12ef0386-d68a-4b41-a03b-52c993d8e344'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-vn-67715505'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-policy-allow-all-42865207']], 'subnet_ipam': [{'subnet_cidr': '198.22.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-04 14:20:55,306 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-04 14:20:55,603 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-04 14:20:55,634 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e0b5dedb-67d0-40b2-b69d-2181b8e6878e
2025-06-04 14:20:55,650 - DEBUG - Requesting: http://10.0.0.129:8082/project/53e0d819-e4c1-4e28-8366-cb1960007e63
2025-06-04 14:20:55,727 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8533e38d-ad9b-44bc-9b00-02bf24c15a4f
2025-06-04 14:20:55,739 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8533e38d-ad9b-44bc-9b00-02bf24c15a4f
2025-06-04 14:20:55,750 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/11fefc0e-687c-401b-b3d7-f2ebb9ec4ca6
2025-06-04 14:20:55,759 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/11fefc0e-687c-401b-b3d7-f2ebb9ec4ca6
2025-06-04 14:20:55,768 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/54cd4a4a-dc50-486c-ab54-5e24c3d83082
2025-06-04 14:20:55,776 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-04 14:20:55,776 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8533e38d-ad9b-44bc-9b00-02bf24c15a4f
2025-06-04 14:20:55,786 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/11fefc0e-687c-401b-b3d7-f2ebb9ec4ca6
2025-06-04 14:20:55,801 - INFO - Verified VN network id 8 for VN 8533e38d-ad9b-44bc-9b00-02bf24c15a4f
2025-06-04 14:20:55,801 - INFO - Verifications in API Server for VN ctest-vn-78231443 passed
2025-06-04 14:20:55,801 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8533e38d-ad9b-44bc-9b00-02bf24c15a4f
2025-06-04 14:20:55,812 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/11fefc0e-687c-401b-b3d7-f2ebb9ec4ca6
2025-06-04 14:20:55,820 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/11fefc0e-687c-401b-b3d7-f2ebb9ec4ca6
2025-06-04 14:20:55,828 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/54cd4a4a-dc50-486c-ab54-5e24c3d83082
2025-06-04 14:20:55,841 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-78231443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67477209', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9598265428499186876', 'uuid-lslong': '11168930095857490511'}, 'enable': 'true', 'created': '2025-06-04T14:20:53', 'last-modified': '2025-06-04T14:20:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019137'}
2025-06-04 14:20:55,848 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-04 14:20:55,848 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78231443 passed
2025-06-04 14:20:55,849 - DEBUG - ====Verifying policy data for ctest-vn-78231443 in API_Server ======
2025-06-04 14:20:55,849 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-04 14:20:55,856 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e0b5dedb-67d0-40b2-b69d-2181b8e6878e
2025-06-04 14:20:55,868 - DEBUG - Requesting: http://10.0.0.129:8082/project/53e0d819-e4c1-4e28-8366-cb1960007e63
2025-06-04 14:20:55,946 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8533e38d-ad9b-44bc-9b00-02bf24c15a4f
2025-06-04 14:20:55,956 - DEBUG - ==>Verifying data for policy with id: cb261df4-1b61-4603-96e6-669266809da6, fqn: ['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-policy-allow-all-42865207']
2025-06-04 14:20:55,957 - INFO - VN ctest-vn-78231443 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-04 14:20:55,957 - DEBUG - Verifying the vn in opserver
2025-06-04 14:20:55,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-78231443 virtual network link through opserver 10.0.0.129
2025-06-04 14:20:55,957 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-06-04 14:20:56,252 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-06-04 14:20:56,310 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-78231443', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-78231443?flat'}
2025-06-04 14:20:56,310 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-78231443 is found in opserver
2025-06-04 14:20:56,323 - DEBUG - Do not have enough data to verify VN in agent
2025-06-04 14:20:56,330 - DEBUG - VRF ids for VN ctest-vn-78231443: {}
2025-06-04 14:20:56,330 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-04 14:20:56,338 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e0b5dedb-67d0-40b2-b69d-2181b8e6878e
2025-06-04 14:20:56,352 - DEBUG - Requesting: http://10.0.0.129:8082/project/53e0d819-e4c1-4e28-8366-cb1960007e63
2025-06-04 14:20:56,427 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a72d6c90-c9df-4c22-b755-fc08a3be51d6
2025-06-04 14:20:56,441 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a72d6c90-c9df-4c22-b755-fc08a3be51d6
2025-06-04 14:20:56,452 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/6c8af5a2-5e0c-43b0-9be8-901261190fb3
2025-06-04 14:20:56,460 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/6c8af5a2-5e0c-43b0-9be8-901261190fb3
2025-06-04 14:20:56,471 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/de339ea0-3551-4366-bfde-82b070a7acae
2025-06-04 14:20:56,479 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-04 14:20:56,479 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a72d6c90-c9df-4c22-b755-fc08a3be51d6
2025-06-04 14:20:56,490 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/6c8af5a2-5e0c-43b0-9be8-901261190fb3
2025-06-04 14:20:56,504 - INFO - Verified VN network id 9 for VN a72d6c90-c9df-4c22-b755-fc08a3be51d6
2025-06-04 14:20:56,504 - INFO - Verifications in API Server for VN ctest-vn-67715505 passed
2025-06-04 14:20:56,504 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a72d6c90-c9df-4c22-b755-fc08a3be51d6
2025-06-04 14:20:56,515 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/6c8af5a2-5e0c-43b0-9be8-901261190fb3
2025-06-04 14:20:56,530 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/6c8af5a2-5e0c-43b0-9be8-901261190fb3
2025-06-04 14:20:56,544 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/de339ea0-3551-4366-bfde-82b070a7acae
2025-06-04 14:20:56,558 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-67715505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67477209', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12046403947403889698', 'uuid-lslong': '13210742195998314966'}, 'enable': 'true', 'created': '2025-06-04T14:20:54', 'last-modified': '2025-06-04T14:20:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481293'}
2025-06-04 14:20:56,565 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-04 14:20:56,565 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67715505 passed
2025-06-04 14:20:56,566 - DEBUG - ====Verifying policy data for ctest-vn-67715505 in API_Server ======
2025-06-04 14:20:56,566 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-04 14:20:56,572 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e0b5dedb-67d0-40b2-b69d-2181b8e6878e
2025-06-04 14:20:56,587 - DEBUG - Requesting: http://10.0.0.129:8082/project/53e0d819-e4c1-4e28-8366-cb1960007e63
2025-06-04 14:20:56,662 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a72d6c90-c9df-4c22-b755-fc08a3be51d6
2025-06-04 14:20:56,675 - DEBUG - ==>Verifying data for policy with id: cb261df4-1b61-4603-96e6-669266809da6, fqn: ['default-domain', 'ctest-TestBasicPolicy-67477209', 'ctest-policy-allow-all-42865207']
2025-06-04 14:20:56,675 - INFO - VN ctest-vn-67715505 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-04 14:20:56,675 - DEBUG - Verifying the vn in opserver
2025-06-04 14:20:56,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-67715505 virtual network link through opserver 10.0.0.129
2025-06-04 14:20:56,675 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-06-04 14:20:56,686 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-67715505', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-67715505?flat'}
2025-06-04 14:20:56,686 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67477209:ctest-vn-67715505 is found in opserver
2025-06-04 14:20:56,696 - DEBUG - Do not have enough data to verify VN in agent
2025-06-04 14:20:56,701 - DEBUG - VRF ids for VN ctest-vn-67715505: {}
2025-06-04 14:20:56,762 - DEBUG - Services list from nova: [